Provide your own implementation (name the new class MyString2) with one data field, array of characters, and the following methods:

The String class is provided in the Java library. Provide your own implementation (name the new class MyString2) with one data field, array of characters, and the following methods: public MyString2(String s); constructor • public String getArray();return the data field as a String. public MyString2 substring(int begin); create a new string starts at begin and return it. public MyString2 toUpperCase(); convert all characters in a string to uppercase and return it. • public static MyString2 valueOf(boolean b); convert b value to string and return it. Do not use any method from String (you can use length), StringBuilder, or StringBuffer .

Essay Writers

How it works

You are only 4-steps away from a perfect custom essay.

1. Make an order
2. Wait for response
3. Monitor the process
4. Download Paper

GET A FREE QUOTE

Price: $
Open chat