|ITEC 120 LAB 19||Back to Lab index page|
Sort an array of objects
This lab builds on lab18. All you need to do is add some things to your lab18 driver and the Textbook class.
You will sort the array of 10 Texbooks by price before printing them out. To do that, you can simply use the insertionSort that has already been written if you make Textbook Comparable.
Once you have your program working, show your lab to the Peer Instructor to be checked off.