title: ArrayList and Loop
body: <pre><code>ArrayList&lt;String&gt; gradeN = new ArrayList&lt;String&gt;();
  gradeN.add("one");
  gradeN.add("two");
  int num2 = 0;
  while (num&lt;5){
      gradeN.get(0).concat("*");
      num2++;
  }
  System.out.println(gradeN.get(0));
  </code></pre>
  
  <p>This is not working.
  I  want output like this:</p>
  
  <pre><code> one*****
  </code></pre>
  
  <p>and do this in a loop..</p>