|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--applications.TowersOfHanoiShowingStates
| Constructor Summary | |
TowersOfHanoiShowingStates()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
test program |
static void |
showTowerStates(int n,
int x,
int y,
int z)
show the states of the three towers as disks are moved |
static void |
towersOfHanoi(int n)
n disk Towers of Hanoi problem |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TowersOfHanoiShowingStates()
| Method Detail |
public static void towersOfHanoi(int n)
public static void showTowerStates(int n,
int x,
int y,
int z)
n - number of disksx - source towery - destination towerz - intermediate towerpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||