title: Making a String containing the same character multiple times
body: <p>How can I initialize a String with dynamic length in Java?</p>
  
  <p>For example, I want to have a String consisting of <em>n</em> characters <code>a</code>, where <em>n</em> is a variable. Can I do that?</p>