Virtusa interview question

Develop a Java program that prints repeated string in a paragraph