title: When I set the final variable to 4, how do I ensure that the top 4 lines are erased and not the bottom 4?
body: <p>I am trying to print an hourglass figure. Initially, the LINE constant variable was set to 8 and it works fine. However, when I set LINE = 4; the bottom half looks good, but the upper half prints the top 4 lines instead of the bottom 4 lines (in order to match the bottom half of the hourglass.)</p>
  
  <p>After setting the LINE variable to 4, I've tried to switch the first and third for loops to print the bottom 4 lines of the upper half of the hourglass. I've also done trial and error with the variables in each of the for loops, making some of the variables in the first for loop negative to try to print the 4 lines from the bottom. I've also used the debugger, and did not find any syntax or logic errors.</p>
  
  <pre><code>public static final int LINE = 4;
  
  public static void question8(){
      System.out.println("+----------------+");
  
      // UPPER HALF (where the "error" occurs)
      for (int i=1; i&lt;=LINE;i++){
          System.out.print("|");
          for (int j=1; j&lt;i;j++){
              System.out.print(" ");
          }
          System.out.print("\\");
          for (int k=7; k&gt;i-1;k--){//this was the line changed!
              System.out.print("..");
          }
          System.out.print("/");
          for (int j=1;j&lt;i; j++){
              System.out.print(" ");
          }
          System.out.println("|");
      }
      //BOTTOM HALF
      for (int i=1; i&lt;=LINE;i++){ // i controls the #of lines
          System.out.print("|");
          for(int j=8; j&gt;i;j--){ // j controls the # of spaces before / in every line.
              System.out.print(" ");
          }
          System.out.print("/");
          for (int k=0; k&lt;i-1;k++){ // k is to control how many dots we have in every line.
              System.out.print("..");
          }
          System.out.print("\\");
          for (int j=8;j&gt;i;j--){ // j is to control how many spaces we have after \ in every line.
              System.out.print(" ");
          }
          System.out.println("|");
      }
      System.out.println("+----------------+");
  }
  </code></pre>
  
  <p>expected results:</p>
  
  <pre><code>+--------+
  |\....../|
  | \..../ |
  |  \../  |
  |   \/   |
  |   /\   |
  |  /..\  |
  | /....\ |
  |/......\|
  +--------+
  </code></pre>
  
  <p>actual results:</p>
  
  <pre><code>+----------------+
  |\............../|
  | \............/ |
  |  \........../  |
  |   \......../   |
  |       /\       |
  |      /..\      |
  |     /....\     |
  |    /......\    |
  +----------------+
  
  no error messages
  </code></pre>