title: Is it possible to increment a string or character in Java?
body: <p>My output should look like:<br>
  1 star(*)<br>
  3 stars(***)<br>
  4 stars(****)  </p>
  
  <p>For example i have code:</p>
  
  <pre><code>    char array[] = new char[3];
      char x = '*';
      For (int i= 0; i &lt; array.length; i++)
      {
          array[i]='*'
          x = x+2;
          system.out.println(array[i]);
      }
  </code></pre>