title: Compiling Error- Unreachable Statement
body: <p>I'm getting an unreachable statement error in demo code from my book on this line</p>
  
  <pre><code>  System.out.print("Contents of bigQ: ");
  </code></pre>
  
  <p>Here is the rest of the code.</p>
  
  <pre><code> class demonstration {
      public static void main(String args[]) {
          qdsd bigQ = new qdsd(100);
          qdsd smallQ = new qdsd(4);
          char ch;
          int i;
  
          System.out.println("Using bigQ to store the alphabet.");
          // put some numbers into bigQ
          for(i = 0; 9 &lt;26;i++)
              bigQ.put((char) ('A' + i));
  
          // retrieve and display elements form bigQ
  
          System.out.print("Contents of bigQ: ");
  
          for(i = 0; i &lt; 26; i++) {
              ch = bigQ.get();
              if(ch != (char) 0) System.out.print(ch);
  
          }
          System.out.println("\n");
  
          System.out.print("Using smallQ to print out some errors.");
          // Now, use smallQ to generatate some errors
          for(i=0;i&lt;5;i++){
              System.out.println("Attempting to store "  +
                      (char) ('Z' - i));
              System.out.println();
  
          }
          System.out.println();
      // more errors on smallQ
      System.out.print("Contents of smallQ: ");
      for(i=0;i&lt;5;i++){
          ch = smallQ.get();
  
          if(ch != (char) 0) System.out.print(ch);
  
      }
      }
  }
  </code></pre>