/** A program to test the StudentFile and StudentRecord classes. */ public class A3 { /** * @param args is ignored */ public static void main(String[] args) { StudentFile sf = new StudentFile(); sf.add(new StudentRecord("john", "doe", 1776)); sf.add(new StudentRecord("jane", "doe", 1984)); sf.add(new StudentRecord("jose", "state", 1857)); sf.traverseByName(); System.out.println(); sf.traverseByNumber(); System.out.println(); sf.add(null); sf.add(new StudentRecord("pete","lee",2001)); sf.add(new StudentRecord("repeat","lee",2001)); sf.traverseByName(); System.out.println(); sf.traverseByNumber(); System.out.println(); sf.add(new StudentRecord("rejoice","daley",1001)); sf.add(new StudentRecord("joyce","daley",1001)); sf.traverseByName(); System.out.println(); sf.traverseByNumber(); } }