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 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
Get step-by-step solutions from verified subject matter experts
