HELP: Sorted, Unsorted, & Indexed list
So I have two list (List1 & list2). Each has 4 add statements and one remove statements. Then 4 println statements (SOrted, list1, unsorted, list2).
UnsortedListInterface list1 = new RefUnsortedList();
SortedListInterface list2 = new RefSortedList();
Example:
list1.add("apple")
list1.add("pear")
list1.add("peach")
list1.add("orange")
list1.remove("peach")
and same thing for list2
But I'm not sure about the result...For unsorted, would it be thefoloowing and vice versa in a sense for list2 sorted.
apple
orange
pear