/* * ListNode.java * * Walter Goodwater * * CSc 300: Copyright Violations * * This code modified from "Data Structures and Algorithm Analysis * in Java", by Weiss */ public class ListNode { String name; int age; ListNode next; ListNode( String name, int age ) { this( name, age, null ); } ListNode( String name, int age, ListNode n ) { this.name = name; this.age = age; this.next = n; } }