Create your own version of the String class. Call it MyString. This class should be immutable. Make sure to encapsulate your data properly. Provide an implementation for the following methods:

public MyString(char[] chars);
public char charAt(int index);
public int length();
public MyString substring(int begin, int end);
public MyString toLowerCase();
public MyString toUpperCase();
public boolean equals(MyString s);
public MyString getMyString();
public String toString();
public static MyString valueOf(int i);

Do not use any function from the String class. The only time you're allowed to use the String class is in the toString() method. Even then, you may only use the String's constructor, but not the methods.

Make sure to provide a driver class, too, and show the output.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.