edu.harvard.seas.iis.util.collections
Class ListUtils
java.lang.Object
edu.harvard.seas.iis.util.collections.ListUtils
public class ListUtils
- extends Object
- Author:
- kgajos
Some common utilities for manipulating lists
Method Summary |
static void |
main(String[] args)
|
static List |
shuffle(List list)
Shuffles the elements of the list; it shuffles them in place. |
ListUtils
public ListUtils()
shuffle
public static List shuffle(List list)
- Shuffles the elements of the list; it shuffles them in place. The
returned list is actually the same object as the argument -- it is
returned just for convenience.
- Parameters:
list
- a list whose elements are to be shuffled
- Returns:
- the same list with its elements in random order
main
public static void main(String[] args)