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, 22.06.2019 04:00
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
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
question
English, 09.06.2020 11:57
question
English, 09.06.2020 11:57
question
Biology, 09.06.2020 11:57
question
Mathematics, 09.06.2020 11:57
question
Mathematics, 09.06.2020 11:57
question
Business, 09.06.2020 11:57