I get the error:
State.java:3: cannot find symbol
symbol: class Command
import static Command.*;
^
/** FIRST CLASS **/
import static Command.*;
public enum State
{
Authorization( new Command[] { USER, PASS, APOP, QUIT } ),
Transaction( new Command[] { STAT, LIST, RETR, DELE, NOOP, RSET, UIDL, TOP, QUIT } ),
Update( new Command[] { QUIT } );
private Command[] allowedCommands;
State(Command[] allowedCommands)
{
this.allowedCommands = allowedCommands;
}
//Rest is elided...
}
/** SECOND CLASS **/
public enum Command
{
USER, PASS, APOP, QUIT, STAT, LIST, RETR, DELE, NOOP, RSET, TOP, UIDL;
}