We need to build:
• The abstract class Vehicle which has the 11 private variables we have
chosen.
• Truck, SUV, and Car Classes inside of the Vehicle Project.
• Utility class which will fill the array.
• Dealer class which will store the array of vehicles.
• EasyReader class inside of our project.
/**
* The Utilities class holds all the methods for the vehicle class that do
* standard tests such as search, average, max, min, sort, and read from a file.
*
* @author YourName
* @version 05-06
*/
public class Utilities
{
/**
* Reads in a file
*
* @param filename - the name of the file
* @param size - the size of the new file
*/
public static Vehicle[] read(String filename, int size)
/**
* Prints out a list of Vehicles
* @param v - an array of Vehicles to be printed
*/
public static void print(Vehicle[] v)
/**
* Sorts a Vehicle array by its price
* @param v - a list of Vehicles to be sorted
*/
public static Vehicle[] sortByPrice(Vehicle[] v)