title: Creating a vertical histogram in Java (without arrays)
body: <p>The program creates a horizontal histogram. How would I change it to a vertical histogram with the categories listed at the top and the asterisks' following under each category. Here's the kicker - without using any arrays (only loops and if statements).          </p>
  
  <pre><code>    System.out.print("0-29: ");
      for(int v = 0; v &lt; countertwo; v++) {
          System.out.print("*"); }
  
      System.out.println(" ");
      System.out.println(" ");
  
      System.out.print("30-39: ");
      for(int v = 0; v &lt; counterthree; v++) {
          System.out.print("*");
      }
      System.out.println(" ");
      System.out.println(" ");
  
      System.out.print("40-69: ");
      for(int v = 0; v &lt; counterfour; v++) {
          System.out.print("*");
      }
      System.out.println(" ");
      System.out.println(" ");
  
      System.out.print("70-100: ");
      for(int v = 0; v &lt; counterfive; v++) {
          System.out.print("*");
      }
  </code></pre>