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

HELP PLEASE “Which of the following was NOT a part of the U>S Indian policy”
What countries were involved in the battle of verdun Need help asap! Please and thanks
Figurative language in hobbit chapter 10
Compare and contrast the above pieces, each of which is of a woman. Please answer my question
One physiological effect of the Black Death was a loss in
why is it important for individuals to know what foreign relationships our government is engaged in?
Please answer this correctly without making mistakes
division 54 /7.5 plz answer this​
Write the equation of the line that passes through the points (3,5) and (-1,1). Put your answer in fully reduced point-slope form, unless it is a vertical or ho
Easy points! Is there such thing as dull question? Explain why or why not with a complete sentence.