secondaryCarand replacing it with a single array of
addmethod and a
removemethod. Both should take a
Caras an argument, return nothing (void), and add or remove the
Carto/from the array instance variable.
toString()method to the
Carclass. This method should return a string containing the type of car, its mileage, and its fuel tank level.
mainmethod from PA5 to create a few cars and add several to your fleet, drive them around, fill them up with gas, and print them out (causing their
toStringmethods to be invoked).
Submit as per the syllabus.