I have a Car class, the objects are below:
//The car description.
private String carDescription;
//The customer name.
private String customer;
//The required deposit amount.
public int downPayment;
//The number of days the car is to be rented for.
public int rentalPeriod;
//The daily rental rate of the car.
public int rate;
//The date the car is to hired.
public String dateOfHire;
//The date the car is due to be returned.
public String dateOfReturn;
//The total amount of rent due.
public int totalRent;
//Whether or not the car is currently on loan.
public boolean onLoan;
I now need to make a RentalCompany class with an attribute that is an array list of the Car class objects.
Please help, how do I start this? I am using BlueJ