title: How to create String of length consisting of same character repeated multiple times?
body: <p>If i want a <code>String s</code> which would consist of <code>n</code> instances of character <code>A</code>, can this be done cleaner in Java other then</p>
  
  <pre><code>public static String stringOfSize(int size, char ch) {
      StringBuilder s = new StringBuilder();
      while (size-- &gt; 0) {
          s.append(ch);
      }
      return s.toString();
  }
  </code></pre>
  
  <p>Can we do better? Just wondering.</p>