
9.8 Programming Activity 2: Working with the ArrayList Class 623
9.8 Programming Activity 2: Working with the ArrayList Class
In this activity, you will work with an ArrayList object. Specifically, you will
write the code to perform the following operations:
1. Fill the ArrayList object with Auto elements.
2. Print the Auto elements contained in the ArrayList object.
3. Set the model instance variable of every Auto element in the ArrayList
object to a specified model.
4. Find the maximum number of miles of all Auto elements contained
in the ArrayList object.
5. Count the number of Auto elements in the ArrayList objects with a
specified model.
The framework ...