lists :: list class


class List
{
  private Node head;
  
  //setting up reference fields using and inner class
  class Node
  {
    int item;
    Node link;
    
    Node(int i, Node l)
    {
      item = i;
      link = l; 
    }
  }
}