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

The sum of two numbers is 63 . The larger number is 7 more than the smaller number. What are the numbers?
12 out of 30 people chose their favourite colour as blue calculate the angle you would use for blue on a pie chart
differentiate of the square root of x plus sqaure root of x plus square root of x
what was the difference between a subsistence economy and the market economy that developed as a result of nineteenth century transportation
how is 16/7 simplified???????
The duty of a journalist is to give honest facts to the readers. How is the common man affected by ‘Yellow Journalism’.
I am not sure if i did this right she wants us to distribute and get only one x on one side and find the answer.
divide the difference between 2400 and 900 by 3
What 3 nubers can you add together and get 39?
you are traveling in a car that is moving at a velocity of 20 m/s. suddenly a car 10 meters in front of you slams on its brakes. at the moment you also slam on