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

Propose a checklist of rules that can be used to determine whether a flowchart or pseudocode segment is structured.
Compute the monthly payments for an​ add-on interest loan of ​$1620​, with an annual interest rate of 11​% and a term of 5 years.
Y+3=1/3(x+9) different ways to write equation
Parkinson's disease is a(n) a. Feeding and eating disorder b. Somatic disorder c. Anxiety disorder d. Bipolar disorder
Most of the salt that gets added to the ocean comes from river runoff.A. TRUE B. FALSE
42,800,000,000/3.0*10^5
with the reference to the following items identify and explain types of intellectual properties. Darjeeling tea​
un inversor vende en corto 100 acciones de XYZ a 40 USD y vende 1 put XYZ Oct 40 a 5 USD. Si la put se ejerce cuando el precio de mercado de la acción es de 35
Criteria Matches my interests Matches my abilities Matches my values Salary or median pay Entry-level education Work experience On-the-job training Job outlook
what's the volume of a tank that is 4 height 18 width and 4 length? ​