-
-
Save anonymous/afffcce8c81b31c8f1dc 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
public class Command { | |
static final int CMD_LET = 0; | |
static final int CMD_DOC = 1; | |
static final int CMD_PRINT = 2; | |
static final int CMD_DO = 3; | |
static final int CMD_HISTORY = 4; | |
static final int CMD_END = 5; | |
String s; | |
public Command(String s){ | |
this.s = s; | |
} | |
public int getCommand(){ | |
if(); | |
return(CMD_LET); | |
if() | |
return(CMD_DOC); | |
if() | |
return(CMD_PRINT); | |
if() | |
return(CMD_DO); | |
if() | |
return(CMD_HISTORY); | |
if() | |
return(CMD_END); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment