ListTest - myList.add(50 myList.add(200 myList.add(25...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// **************************************************************** // // // A simple test program that creates an IntList, puts some // ints in it, and prints the list. // // **************************************************************** public class ListTest { public static void main(String[] args) { IntList myList = new IntList(10); myList.add(100);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: myList.add(50); myList.add(200); myList.add(25); System.out.println("*** Unsorted List ***"); System.out.println(myList); SortedIntList mySortedList = new SortedIntList(10); mySortedList.add(100); mySortedList.add(50); mySortedList.add(200); mySortedList.add(25); System.out.println("*** Sorted List ***"); System.out.println(mySortedList); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online