Both of these java.util classes provide
A sort() method. Sort using a Comparator or sort using natural order.
A binarySearch() method. Search a pre-sorted array or List.
Arrays.asList() creates a List from an array and links them together.
Collections.reverse() reverses the order of elements in a List.
Collections.reverseOrder() returns a Comparator that sorts in reverse.
Lists and Sets have a toArray() method to create arrays
English Premier League
Bundesliga
La Liga
Showing posts with label Utility Classes: Collections and Arrays. Show all posts
Showing posts with label Utility Classes: Collections and Arrays. Show all posts
3:37 PM
Utility Classes: Collections and Arrays
Friday, August 21, 2009
Subscribe to:
Posts (Atom)

