title: how to add an integer to the end of a Intlist using recursion?
body: <pre><code>public IntNode first;
  
  public class IntNode{
      public int item;
      public IntNode next;
  
      public IntNode(int i, IntNode n) {
          item = i;
          next = n;
      }
  public void addLast(int x) {
      IntNode p = first;
      while (p.next!=null) {
          p = p.next;
      }
      p.next = new IntNode(x,null);
  
  }
  </code></pre>
  
  <p>So I want to add an integer x to the end of the IntNode, and I did it iteratively. How to do it using recursion? </p>