title: Why is this code giving an "unreachable code" error?
body: <p>I can't seem to find a way to fix this problem. All i'm doing is declaring an integer and it's telling me that the code is unreachable.</p>
  
  <pre><code>private class myStack{
      Object [] myStack = new Object[50];
  
      private void push(Object a){
          int count = 50;
          while(count&gt;0){
              myStack[count]=myStack[count-1];
              count--;
          }
          myStack[0]=a;
      }
  
      private Object pop(){
          return myStack[0];
          int count2 = 0; //Unreachable Code
      }   
  }
  </code></pre>