title: Creating asterisks with for loop using arrays
body: <p>I am trying to add asterisks on a line equal to the Int array. This starts at index 0 until the last index of the array. Here is what I have tried to do so far.</p>
  
  <pre><code>int e = 0;
  int z = 0;
  int[] yValuesInt = new int[yValues.length];
  
  for (z=0; z&lt;yValues.length; z++) {
      yValuesInt[z] = (int) yValues[z]; // converted array from double to int
  }
  
  System.out.println("" + yValuesInt.length);
  
  for (e = 0; e&lt;yValuesInt.length; e++) { // outside loop to continue until last index
      for (int j = 0; j&lt;yValuesInt[z]; j++) { //inside loop to print asterisks
          System.out.println(":" + asterisk);
      }
  }
  </code></pre>