title: Printing asterisk based on Int array
body: <p>I am trying to create a loop that will create lines of asterisks, with the amount of asterisks on a single line equal to the INT array. This loop will start at index 0 until the end of the array. Having trouble figuring out how to code this. Any help is appreciated. This is what I've come up with so far and I'm stuck on what to do next.</p>
  
  <pre><code>int e = 0;
  int[] yValuesInt = new int[yValues.length];
      for (z=0; z&lt;yValues.length; z++)
      {
          yValuesInt[z] = (int) yValues[z]; // changing from double array to int
      }
  
      for (int i = 0; i&lt;=arrayAmount-1; i++) // loop to continue until array is over
      {
  
      while (e&lt;yValuesInt[z]) // loop that is creating asterisks based on int array
          {
              System.out.print("" + asterisk);
              e++;
          }
          System.out.println(": "  );
      }
  </code></pre>