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 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.
Evan said that the difference between two negative numbers must be negative. Was he right?
if you're planning to drink, you should?
Shawn evaluated the algebraic expression x divided by 4 for x = 12 and gave an answer of eight. What was his error? What is the correct answer?
What is the area of the figure? A. 24 km² B. 32 km² C. 40 km² D. 48 km²
Why can't there be a number lower than absolute zero
senators are elected six years and may be re-elected as often as the people wish to vote for them. true or false?
Multi-step: A perfect score on a test with 25 questions is 100. Each question is worth the same number of points. a. How many points is each question on the tes
What is nearest tenth of 20.25?
What is the answer to 91.23*50.73