Last active
December 11, 2015 05:49
-
-
Save bkleinen/4555331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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