public abstract class Strategy
extends java.lang.Object
| Constructor and Description |
|---|
Strategy() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
arrayTo(int num)
Creates an array of length num, with the index as value
|
int[] |
shuffle(int[] array)
Shuffles an array
|
protected int[] arrayTo(int num)
num - the length of the array madepublic int[] shuffle(int[] array)
array - the array to be shuffled