secret
Created

  • Download Gist
gistfile1.java
Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.