|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--applications.TowersOfHanoi
| Constructor Summary | |
TowersOfHanoi()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
test program |
static void |
towersOfHanoi(int n,
int x,
int y,
int z)
output a sequence of disk moves for the 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 TowersOfHanoi()
| Method Detail |
public static void towersOfHanoi(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 | ||||||||