Question: 2. (Redesigning the String class) The String class is provided in the Java library. Design your own string class based on an array of characters.

 2. (Redesigning the String class) The String class is provided in

2. (Redesigning the String class) The String class is provided in the Java library. Design your own string class based on an array of characters. Name your string class MyString. You design should minimally include the following methods: public MyString(char 1 chars); public char charAt (int index); public int length); public MyString substring int begin, int end); public MyString toLowerCase(); public boolean equals (MyString s); public static MyString value0f (int i); Describe your class using English and Pseudocode. Draw the UML diagram for the class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!