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

iT COST $9 TO GO TO PETE'S POTTERY PLACE TO MAKE YOUR OWN BOWLS $3 PER BOWL. NATALIE GOES TO PETE'S POTTERY PLACE AND MAKES B BOWLS. SHE DECIODES TO MAKE BOWLS
Identify the key structural features of a dna molecule.
All of the following statements about Mexican immigrants in Texas are true EXCEPT: a. Their customs were heavily influenced by Spanish traditions. b. Very few M
I need help!!! Pleasssse!!!! The ratio of the length to the width to the height of a rectangular box of cereal is 6:2:7. The sum of the length and the width of
Thanks to its geography and geology, in the area of ​​the city of Arequipa there are many volcanic eruptions and
Which type of the religion was strengthened in North Africa by Islam? Polytheistic Agnostic Monotheistic Atheistic
The rate for a reaction between reactants l, m, and n is proportional to the cube of [l] and the square of [m]. what is the rate law for this reaction?
May somebody please help me with this question. It would mean a lot! Thank you
Mia spends 45 minutes reading each day. She does 25 of her reading at school. How many minutes does Mia spend reading at school?
How does the author use the character of Editha to voice his own opinions?