Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java Please The class you write is called Pseudo and it mimics some of the attributes of the String class. After you write the

In Java Please

The class you write is called Pseudo and it mimics some of the attributes of the String class. After you write the methods in the Pseudo class, you can test them by comparing the return values from methods in your class to the return values from the String class.

image text in transcribed

image text in transcribed

Results

image text in transcribed

Part A - Defining String Functions NOTE:To implement the methods below, you cannot use the String methods indexof, toUpperCase, substring, or equals. All of the methods below must use the contents of the character array stored in the Pseudo class! Declare a public static method called charAt that takes a char array parameter, and an index parameter and returns the character from the array at the index specified. You can assume that the index is valid, i.e. between 0 and String,length()- 1. 1. Declare a public static method called indexOf that takes a char array parameter, character parameter and returns the index in the character array of the first occurrence of that character or -1 if the character is not found. 2. Declare a public static method called toUpperCase takes a char array parameter and returns a String with the contents of the character array converted to upper case. Do not change the contents of the character array! 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago