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

When did the Neolithic revolution begin? a. about 9500 B.C.E. b. about 50,000 B.C.E. c. about 2000 B.C.E. d. about 100,000 B.C.E.
If angle adc=134 and adb=5x+4 and bdc=7x-2 what does angle bdc measure
What is the value of the expression when a = 5 and b = 3? 4a^2 5b^3 a. 55 b. 74 c. 81 d. 145
26.37+( -61.1 ) Please show all steps !!!??
I've been given the following questions to hear (through audio) and respond in negative form. 1. Est-ce que les étudiant mange tout restaurant? 2. Le proffeseur
4,083,817 what 3 digits are in the units period?
913,256----write the name of the period that has the digits 913? Write the value of the digit 9?
Buddhism was based on the teachings of _______. a. Ashoka the Great b. Chandragupta Maurya c. Alexander the Great d. Siddhartha Gautama
Write the expression (4X -2)•6(2X +7)in the standard form of a quadratic expression
How would an increase in population impact an aquifer