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

why does water tend to sink near Arctic regions?
When treating any broken bone for transport, be sure to ... ?
Is Macbeth a tragedy of fate or of character? In determining your position on this, consider whether the witches play a central or collateral role in shifting t
Why were more Americans able to buy luxury items such as cars during the 1920s?
Jose Rivera purchased 7 textbooks for his classes at River Run Community College. The total cost of the texts was $208.55. What is the average cost per textbook
What happens to kinetic energy of a snowball as it rolls across the lawn and gains mass
simplify the expression 19-(-8)-(14)=
A group of 140 tourists are going on a tour. The tour guide rents 15 van. Each van hold 9 tourist
The sea of electrons in metals acts as A) an adhesive B) a lubricant C) a bonding agent
Mozart began composing music by the age of five. True or false?