Skip to content

Instantly share code, notes, and snippets.

@bkleinen
Last active December 11, 2015 05:49
Show Gist options
  • Save bkleinen/4555331 to your computer and use it in GitHub Desktop.
Save bkleinen/4555331 to your computer and use it in GitHub Desktop.
/**
* Enumeration class CommandWord - write a description of the enum class here
*
* @author (your name here)
* @version (version number or date here)
*/
public enum CommandWord
{
GO("go"), QUIT("quit"), HELP("help"), UNKNOWN("?");
private String commandString;
CommandWord(String commandString){
this.commandString = commandString;
}
public String toString(){
return commandString;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment