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

I need help with A help please
Which is closest to the volume of the cylinder below? A. 6.28 cubic cm B. 12.56 cubic cm C. 62.8 cubic cm D. 125.6 cubic cm
If the air temperature is -14F how many degrees must it rise to reach 0F
hello what is this class
HELP Please, I really need help with this project.
Can someone explain what’s this haha “Ur too cute and I don't think Asian guys are on Ur agenda”
Determine the number and type of solutions for the equation x^2+8x+15=0 Two different irrational-number solutions One repeated irrational-number solution One re
Question 11 of 20 Which statement best describes an advantage of indirect democracy over direct democracy? A. It can better prevent political leaders from servi
What type of bond connects the oxygen atom to the two hydrogen atoms in water?
For what value of x is the equation 2(x + 1) - x = 10