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 RailroadWithQueues

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

public class RailroadWithQueues
extends java.lang.Object

Constructor Summary
`RailroadWithQueues()`

Method Summary
`static void` | `main(java.lang.String[] args)` test program
`static boolean` | `railroad(int[] inputOrder, int theNumberOfCars, int theNumberOfTracks)` rearrange railroad cars beginning with the initial order inputOrder[1:theNumberOfCars]

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RailroadWithQueues

    public RailroadWithQueues()

Method Detail

### railroad

    public static boolean railroad(int[] inputOrder,
                                   int theNumberOfCars,
                                   int theNumberOfTracks)

  rearrange railroad cars beginning with the initial order inputOrder[1:theNumberOfCars]
  Returns:
    true if successful, false if impossible.

### 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