public class TowerOfHanoi
extends java.lang.Object
| Constructor and Description |
|---|
TowerOfHanoi() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Gets an integer for the number of disks, passes them to method 'moveDisks' method
method and displays the movement of disks.
|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - the String[] array command line parameterjava.util.InputMismatchException - for non-integer inputjava.lang.Exception - if number of disks is zero (0) or negative