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

Which kind of scholar studies human culture? archaeologist anthropologist paleontologist biologist
Which is a characteristic of civilization? painting and sculpture widespread education trade and economic activity mathematics
why is the gcf of two numbers is sometimes one
consumers influence how goods and services are made by
Which is a run-on sentence? a. Keys are made for each lock, yet many keys look the same. b. Apples are generally red, but there are some golden varieties. c.
Which is a sentence fragment? a. While you were gone, your room was painted green. b. Wherever you see a silver fox like that. c. Unless we can find a discou
How did Republican and Whig ideas affect American colonists
How does the 3 in 350 compare to the 3 in 403
Which of the following is a metamorphic rock formed from shale? a. limestone b. gneiss c. slate d. sandstone
A sample of a unknown metal has a mass of 35.4g and a volume of 3.11cm. Calculate it's density and identify the metal