java.lang.ObjectProsperoApp
public class ProsperoApp
ProsperoApp simulates Prospero's waiting room. Prospero greets visitors and places them into the waiting room. He also retrieves the next visitor to see the king. The visitor is chosen in order of gift size. Prospero may also print the waiting list and clear the waiting room of visitors.
| Constructor Summary | |
|---|---|
ProsperoApp()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Launches Prospero Assistant program using the desired source of user input and output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProsperoApp()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException
args - Any non-empty first argument will be interpreted as the name of
a file in the same directory as the program that contains the
user input data.
Any non-empty second argument will be interpreted as the name of
a file in the same directory as the program to which the output
is to be written.
java.io.FileNotFoundException - if the file isn't found.
java.io.IOException - if an illegal IO operation is attempted.