Section 16: Data Structures

Exercise 02: Inserting Into An Ordered List

Date completed: To be completed

Write a program that inserts 25 random integers from 0 to 100 in order into a linked—list object. For this exercise, you’ll need to modify the List<T> class from the code provided to maintain an ordered list. Name the new version of the class SortedList.

The Provided Code

The provided code can be found here. It has been compressed in to a 7-Zip file.

The Created Code

The source code can be found here. It has been compressed in to a 7-Zip file.

Some screen prints

Description Screen Print Out
Screen print of application after running it in Eclipse. java_s16_ex02 image