Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## applications
Class TowersOfHanoi

    java.lang.Object
      |
      +--applications.TowersOfHanoi

public class TowersOfHanoi
extends java.lang.Object

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

### TowersOfHanoi

    public TowersOfHanoi()

Method Detail

### towersOfHanoi

    public static void towersOfHanoi(int n,
                                     int x,
                                     int y,
                                     int z)

  output a sequence of disk moves for the Towers of Hanoi problem
  Parameters:
    `n` - number of disks
    `x` - source tower
    `y` - destination tower
    `z` - intermediate tower

### main

    public static void main(java.lang.String[] args)

  test program

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD