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

How might 2,197 be written as a base number with exponent?
a boat traveled at an average speed of 14.4 km/h for 3.5 hours. how far did the boat travel? use d=rt.
A train travels 20 feet in 1/5 second. At  this same speed, how many feet will it travel in three seconds? Please show solutions on how to solve the problem ste
A fountain can hold 53,000 deciliters of water. How many kiloliters is that
What 2 square numbers have a sum of 130
What does "reciprocal impact" mean?
* Use for question 4-6 * The expression 16t2 models the distance in feet that an object falls during t seconds after being dropped. Find the distance an object
evaluate each expression if x=6,y=8,z=3 2x+3y-z=
Compare and contrast a response and an adaptation. Use examples from your everyday world in your answer.
What is -0.4 as a fraction or mixed number in simplest form ?