subject

Write a program which will accept a string from the keyboard, "Java is fun!" Your program must determine the capacity of the string. Then, append a second string, "I love it!" to the first string. At this point you will enter a string "Yes, " and insert this string so that the output of the entire string will display "Java is fun. Yes, I love it!" Directions •Create a class called Builder. •Using the StringBuilder class, write a program which will accept a string from the keyboard, "Java is fun!" •Your program must determine and display the capacity of the string. •Append a second string, "I love it!" to the first string. •Require the user to enter a string "Yes, " •Insert the string, "Yes " at the correct location, such that the output of the entire string will be "Java is fun. Yes, I love it!" •Display your output using clear and appropriate messages.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
You know the right answer?
Write a program which will accept a string from the keyboard, "Java is fun!" Your program must deter...
Questions
Questions on the website: 13722361