Question: java: create program without using bufferedReader sblab1.txt Once upon a midnight dreary while I pondered weak and weary Over many quaint and curious volume of

java: create program without using bufferedReader  java: create program without using bufferedReader sblab1.txt Once upon a midnight

sblab1.txt

Once upon a midnight dreary while I pondered weak and weary Over many quaint and curious volume of forgotten lore While I nodded nearly napping suddenly there came a tapping As of some one gently rapping rapping at my chamber door

sblab2.txt

If you can talk with crowds and keep your virtue Or walk with Kings nor lose the common touch If neither foes nor loving friends can hurt you If all men count with you but none too much If you can fill the unforgiving minute With sixty seconds worth of distance run Yours is the Earth and everything that is in it And which is more you will be a Man my son

Write a program, SBLab.java, which will complete the following steps. 1. Declare and create a StringBuilder with the value of CSC 202. 2. Invoke the toString, capacity, and length methods, display the results to the screen. 3. Double the length by using the setLength method. 4. Invoke the capacity and length methods again, display the result to the screen. 5. Invoke the trimtoSize method. 6. Invoke the capacity and length method, display it to the screen. 7. Manipulate (see the points below) the contents of 2 files, sblab1.txt and sblab2.txt and store the results in sblabout.txt. (Read the words one by one.) a. For the first 10 words, add the word from sblab2 to the end of the word from sblabl. b. For the next 5 words, insert the word from sblabi into the word from sblab2 at index 1. C. For the last 5 words, replace the characters from index 1 onward of the word from sblabl with the word from sblab2. sbl

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!