FileDocCategorySizeDatePackage
CommandLineView.javaAPI DocExample546Fri Apr 22 10:58:44 BST 2005None

CommandLineView

public class CommandLineView extends Object

Fields Summary
private RentABike
rentaBike
Constructors Summary
public CommandLineView()

Methods Summary
public RentABikegetRentaBike()

 return this.rentaBike; 
public voidprintAllBikes()

      System.out.println(rentaBike.toString());
      Iterator iter = rentaBike.getBikes().iterator();
      while(iter.hasNext()) {
         Bike bike = (Bike)iter.next();
         System.out.println(bike.toString());
      }
   
public voidsetRentABike(RentABike rentaBike)

      this.rentaBike = rentaBike;