FileDocCategorySizeDatePackage
CommandLineView.javaAPI DocExample563Fri Apr 22 10:43:24 BST 2005None

CommandLineView

public class CommandLineView extends Object

Fields Summary
private RentABike
rentaBike
Constructors Summary
public CommandLineView()

rentaBike = new RentABike("Bruce's Bikes");
Methods Summary
public static voidmain(java.lang.String[] args)

      CommandLineView clv = new CommandLineView();
      clv.printAllBikes();
   
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());
      }