title: JAVA : how to repeat string in multiple lines
body: <p>I'm looking for a simple way to repeat a same string in multiple lines.
  eg. String str = "ABC";</p>
  
  <p>How to make the output looks like this by using For loop:</p>
  
  <p>ABCABCABC</p>
  
  <p>ABCABCABC</p>
  
  <p>ABCABCABC</p>