Computers and Technology

The StringBuilder class is provided in the Java library. Provide your own implementation (name the new class MyStringBuilder2) with three data fields, array of characters, size, capacity, and the following methods:

 public MyStringBuilder2(String s);

 public MyStringBuilder2 append(MyStringBuilder2 s); 4 points

 public int length();

 public char charAt(int index);

 public MyStringBuilder2 toLowerCase();

 public MyStringBuilder2 substring(int begin, int end); 2 points

*Do not use any method from String, StringBuilder, or StringBuffer

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:00, Emanuelle7843
Which action describes an aspect of technological design?
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, econsta3
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
image
Computers and Technology, 24.06.2019 16:30, Dajuan2x
Jenny needs to record the names of 30 students, write down the subjects they studied, and note their grades in each subject after the midsemester exams and the end-of-semester exams. she divides the midsemester and end-of-semester information into two separate worksheets, sheet 1 and sheet 2. how will she rename the two worksheets?
Answers: 2
image
Computers and Technology, 25.06.2019 08:00, who0fade
Ais the hardware where the data is actually stored.
Answers: 1
Do you know the correct answer?
The StringBuilder class is provided in the Java library. Provide your own implementation (name the n...

Questions in other subjects: