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.
Step-by-step explanation:
1.6m questions
2.0m answers