March 25
Examples from April 4
More work with Collection classes. Here are four versions of a program that reads in a list of names and phone numbers and allows you to search the list for a given name:
PersonWithPhone.java and PeopleList1.java and SimpleInput.java: This reads in the list of names and phone numbers, then prints it out. No searching.
PersonWithPhone.java and PeopleList.java and SimpleInput.java: This is the full program.
PersonWithPhone.java and PeopleList2.java and SimpleInput.java: This is the same program, only with iterators rather than indexing for walking through the lists.
PersonWithPhone.java and PeopleList3.java and SimpleInput.java: This is the same program, only with LinkedList rather than ArrayList implementation of the list.