Page 36 - Abstract Class, Interface & Struktur Data
P. 36

Sort an ArrayList










             •        Another useful class in the java.util package is the Collections class, which include the




                      sort() method for sorting lists alphabetically or numerically:


             •        Sort an ArrayList of Strings:
   31   32   33   34   35   36   37   38   39   40   41