Sort test for an ArrayList (java)
Im writing a program for a programming class, and need to test to see if an ArrayList is sorted.
There is a function that sorts the arrayList, but I have another function that is supposed to print the ArrayList into a text file if the ArrayList is sorted.
Is there a class in the java API that contains a fuction to test if the ArrayList is sorted?
|