Modify SortableArray List so that it implements Comparable.<> The order should be similar to the lexicographical order for Strings. Specifically, compare the elements at each position, starting with element 0. The first SortableArray List to have a smaller element at some position is the smaller one. If one of them runs out of elements before a difference is found, the one that ran out is the smaller one, just as the String "gar" is less than "gargoyle".
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here