irahndenson6062 irahndenson6062
  • 24-01-2022
  • Computers and Technology
contestada

How do I repeat a word in Java for example:

Are you okay?

Yes

Are you really okay?

Yes

Are you really really okay?

Yes

Here I want to repeat the word really in every sentence.

Respuesta :

jas911625
jas911625 jas911625
  • 24-01-2022

Answer: repeated = new String(new char[n]). replace("\0", s); Where n is the number of times you want to repeat the string and s is the string to repeat.

Explanation:

Answer Link

Otras preguntas

What was the main reason the United States government intervened in the Great Railroad Strike of 1877?
What is the main benefit of having the narrator begin the story with events from his childhood
which of the following statements is most accurate regarding America's political climate between 1876 and 1896
Which task was an enslaved person in Boston most likely to perform? a. harvesting cotton with a group of laborers b. serving as a cook for a wealthy merchant c.
how does lady macduff view macduff flight from scotland
The British originally established Australia to be what type of colony?
each student in the seventh grade will be required to write three papers that are a total of 13 pages long and there are 47 students in the seventh grade approx
Amanda can jog 18 3/4 miles in 5 hours. At this rate, how many miles can she run in 4 hours?
Which healthcare professional is typically a secondary care provider
The scale drawing represents Kim’s living room. She wants to put new baseboards on the walls of the room. If the scale is 2 cm:1 m and the baseboard costs $4.19