Title: Sams CD Rental Store
Description:
Copyright: Copyright (c) 2004
Company:
addparamaCustomer Customer theCollection.add( aCustomer );
theCollection.add( aCustomer );
findByCustomerIDreturnCustomer Iterator iterator = theCollection.iterator(); while ( iterator.hasNext() ) { Customer Customer = ( Customer ) iterator.next(); if ( Customer.getCustomerID().equals( aCustomerID ) ) { return Customer; } } return null;
Iterator iterator = theCollection.iterator(); while ( iterator.hasNext() ) { Customer Customer = ( Customer ) iterator.next(); if ( Customer.getCustomerID().equals( aCustomerID ) ) { return Customer; } } return null;
removeparamaCustomer Customer theCollection.remove( aCustomer );
theCollection.remove( aCustomer );
removeAll theCollection.clear();
theCollection.clear();