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

Lee class has 1.4 times as many students as Fred's. If there are 60 students, how many students does Fred's class have? How many students does Lee's class have?
Explain how you would round the numbers 33 and 89 to estimate their sum
why is soap solution better than cleansing agent?
What makes the stars Exist?
You have a Maxi Card with a $700 limit for this exercise. The card has a monthly finance charge of 1.67%. Fill out the following table. Your payment each mo
URGENT!!!! HNO3 and H2CO3 are examples of A.acids b.bases c.salts neutral compounds.
which equation show you how to find 16-9
Solve the system of equations X+3y=-1 2x+2y=6
describe the two main types of interactions that environmental scientists study
Describe the appearance of a plant that grows in soil that is potassium deficient