Class #19 - Additional Functions to Add to the Vehicle Project
| METHOD THAT BUILDS AN ARRAY |
// returns an array
of vehicles priced LESS THAN the parameter price |
// return an array
of Vehicles of the given make [YOU SHOULD ALREADY HAVE THIS METHOD] |
| 'SIMPLE' METHODS |
| // return the price of
the least expensive car public static double findLeastExpensive(Vehicle[] list) |
| // return the efficiency
of the most efficient car public static double findBestEfficiency(Vehicle[] list) |
| You should add printlns that TEST these methods to your application program. The next application program I provide you with will include these methods. |