Addresses (4) |
---|
// AddressArray continued void printMatches(String name) { for (int n = 0; n < size; n++) { if (list[n].getName(). indexOf(name) != -1) { list[n].print(); } } } void addAddress(Address addr) { if (size == max) System.exit(1); list[size++] = addr; } }
Slide 12 | ©Copyright 1997 | Jan Newmarch |