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

Please answer this in two minutes
Dr. Jones is conducting a study in which he is observing how parents play with their children. When training his research assistants, he tells them to document
Does black lines that are tilted on the staff tell you how many times you Strum. Please help
Ryan, an American manager working in a foreign subsidiary, tends to treat foreign nationals as if they were home-country nationals. As a result, he has been exp
I really neeed helllpppp
Aside from ocean waves, what other factors influence the nature of present-day shorelines? PLEASE SELECT THE TWO THAT APPLY.
a fish weighs 2 kg plus half of its weight. what is the total weight of the fish
using equation of reaction mention 4 methods of preparation of hydrogen​
identitfy the types of reaction: C2H5OH + Na = C2H5ONa + H2 // AgCl + HNO3 = AgNO3 + HCl // N2 + H2 = NH3 // MgCO3 = MgO + CO2 // N2 + H2 = NH3
Which of the following expressions is equal to -3x - 12? A.(-3x-4i)(x-3i) B.(-3x+6i)(x+2i) C.(-3x-6i)(x+2i) D(-3x+2i)(x-6i)