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 many full cases and additional items are needed to fulfill the order 80 6
An unusually wet spring has caused the size of a mosquito population in some city to increase by 7​% each day. If an estimated 18​0,000 mosquitoes are in the ci
What is the equation of the parabola? (3 points) A) y = -1/8x^2 +5 B) y = 1/8x^2 +5 C) y = 1/8x^2 - 5 D) y = -1/8x^2 -5
Two numbers are in the ratio of 2 to 3. Their sum is 30. What are the numbers? 3. Two numbers are in the ratio of 2 to 3. Their sum is 30. What are the numbers
Each statement expresses a different attitude about the same topic. Match each sentence to the tone it delivers.
Help me please, is for my finals!!
The ability to provide for our needs without damaging Earth's resources is called _______. A. Acid Rain B. Sustainability C. Degradation D. Pollution
TIME REMAINING 59:41 Read the sample student claim and the reasons listed for making this claim. Claim: Although many people argue that medical testing on anima
How many individual carbon atoms are contained in one mole of carbon? (Input your answer with scientific notation using "e-notation". (For example, the speed of
The slope equals zero and it passes through the point (x, y) = (1, −6).