Class CarCollection

java.lang.Object
  |
  +--CarCollection

public class CarCollection
extends java.lang.Object


 
Method Summary
 boolean hasMoreCars()
          Tells if there are any more cars in the CarCollection.
 Car nextCar()
          Returns the next Car in the CarCollection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasMoreCars

public boolean hasMoreCars()
Tells if there are any more cars in the CarCollection.

nextCar

public Car nextCar()
Returns the next Car in the CarCollection. This does not change the ParkingLot in any way.