public class Permutation
extends java.lang.Object
| Constructor and Description |
|---|
Permutation(int n,
int r)
Instantiates a new permutation object for r-permutations of n integers.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Assess whether there is another permutation.
|
static void |
main(java.lang.String[] args) |
int[] |
next()
Get the next permutation.
|