title: print data of single linked list backward using stack
body: <p>I am trying to print data of single linked list backward using stack but I am stuck.  The Stack class is as follows:</p>
  
  <pre><code>public class Stack{
  
      public boolean isEmpty(){};    
      public void push(int n){};    
      public int peek(){};
      public int pop(){};
  
  }
  
  public class node{
      int data;
      node next;  
  
  }
  
  public class list{    
      node first;    
  }
  </code></pre>