title: I can't wrap my head around the "draw some stairs with stick-men" program
body: <p>You've probably seen it before in a Java 1 class: it's a problem that asks you write a program that draws the following figure:</p>
  
  <p><img src="https://i.stack.imgur.com/xz45L.jpg" alt="enter image description here"></p>
  
  <p>I have to use a constant. I am not allowed to use anything but for-loops, <code>print</code>, and <code>println</code>. No parameters, no arrays. I know how I could do it with parameters and arrays, lucky me. Any help is appreciated!</p>
  
  <p>Here is my incomplete code:</p>
  
  <pre><code>public class Stairs {
      public static final int LENGTH=5;
  
      public static void main(String[] args) {
          printStairs();
      }
  
      public static void printStairs() {
          for (int allStairs=1; allStairs&lt;=15; allStairs++) {
              for (int spaces=1; spaces&lt;=(-5*allStairs+30); spaces++) {
                  System.out.print(" ");
              }
              for (int stair = 1; stair &lt;= 5; stair++) {
                  System.out.println("  o  *******");
  
              }
          }
      }
  }
  </code></pre>