/** * Created with IntelliJ IDEA. * User: hasker * Date: 11/7/13 * Time: 10:11 AM * To change this template use File | Settings | File Templates. */ public class RosterDriver { public static void main(String[] args) { Roster se1011 = new Roster(); se1011.add("Matt"); se1011.add("Sally"); se1011.add("Robert"); se1011.add("Justin"); se1011.add("Sally"); se1011.add("Tricia"); System.out.println("Students in se1011:"); se1011.printNames(); System.out.println(); if ( se1011.occurrencesOf("Sally") != 2 ) System.out.println("Expected two Sallys"); if ( !se1011.hasName("Sally") ) System.out.println("Couldn't find Sally"); // TODO: add other tests of hasName } }