Preparing for lab nine

Most of the information you need to do this week's lab is in the materials for the lab exercise. You should review those materials before starting the lab exercise.

Sorting a list of objects

One of the more important steps you are going to have to do in this week's lab exercise is sorting a collection of objects that are stored in an ArrayList. This is a topic that I have covered in a previous lecture. To refresh your memory of this you should take a look at the section titled "Sorting with objects" in the lecture More about Sorting.

For further information about how to use a compareTo() method to make objects sortable, please read section 13.6 in the textbook.

More detail about the algorithm

In today's lecture I am going to give an example of the algorithm for this week's lab. Please see the video of the lecture above for full details.