
class LinkedListNode extends Object {

   LinkedListNode next ;

   LinkedListNode add( LinkedListNode lln ) {
      next = lln ;
      return this ;
   }

   void print() {
      LinkedListNode lln ;
      lln = this ;
      while ( lln!=null ) {
         printContents(lln) ;
         lln = lln.next ;
      }
   }

   void printContents(LinkedListNode l) {
System.out.println("I should print something, but there is nothing to say.") ;
   }

   int length() {
      LinkedListNode hereIAm = this ;
      int i = 1 ;
      while ( hereIAm.next!=null ) {
          i++ ;
          hereIAm = hereIAm.next ;
      }
      return i ;
   }

}


