Simple User Interface

 [Previous Chapter]  [Previous Page]  [Contents]  [Next Page]  [Next Chapter]

doolin$ java TestFuelLog
Initial mileage: 10000
Readings from the first gas station stop:
Mileage: 10500
Gallons: 10
Miles per gallon: 50.0
Readings from the second gas station stop:
Mileage: 11000
Gallons: 15
Miles per gallon: 40.0
doolin$ 

*Our FuelLog class can be used by a simple test program that simply operates with standard input and output on a terminal interface.
 

 [Previous Chapter]  [Previous Page]  [Contents]  [Next Page]  [Next Chapter]
Copyright © 2001, 2002 Andreas Borchert, converted to HTML on February 11, 2002