Question: uestion-5 Implement the StringBuilder class) The StringBuilder class is provided in the Java library. Provide your own implementation for the following methods (name the new
uestion-5 Implement the StringBuilder class) The StringBuilder class is provided in the Java library. Provide your own implementation for the following methods (name the new class MyStringBuilderl): public MyStringBuilder1(String s); public MyStringBuilderl append (MyStringBuilderl s); public MyStringBuilderl appendCint i); public int lengthO; public char charAt (int index); public MyStringBuilderl tolowerCaseO: public MyStringBuilderl substring(int begin, int end): public String toStringO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
