The StringBuilder class is provided in the Java library. Provide your own implementation for the following methods

Question:

The StringBuilder class is provided
in the Java library. Provide your own implementation for the following methods (name the new class MyStringBuilder2):
public MyStringBuilder2();
public MyStringBuilder2(char[] chars);
public MyStringBuilder2(String s);
public MyStringBuilder2 insert(int offset, MyStringBuilder2 s);
public MyStringBuilder2 reverse();
public MyStringBuilder2 substring(int begin);
public MyStringBuilder2 toUpperCase();

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: