public class Permutations
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
count |
| Constructor and Description |
|---|
Permutations() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Test by creating a set of names and locations and generating all the combinations
|
static int |
permute(java.util.ArrayList<java.util.ArrayList> inputWrapper,
java.util.ArrayList<java.util.ArrayList> outputWrapper)
Method that takes a list of lists of Objects and generates an output list of lists that has all the permutations.
|
public static int permute(java.util.ArrayList<java.util.ArrayList> inputWrapper,
java.util.ArrayList<java.util.ArrayList> outputWrapper)
inputWrapper - - ArrayList of ArrayList that contains the Objects to be permutedoutputWrapper - - ArrayList of ArrayList that will contain the permuted objectpublic static void main(java.lang.String[] args)
args -