Skip to content

Instantly share code, notes, and snippets.

@ebinjoy999
Created October 13, 2019 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebinjoy999/b6d013be06e471180cb417698a354be3 to your computer and use it in GitHub Desktop.
Save ebinjoy999/b6d013be06e471180cb417698a354be3 to your computer and use it in GitHub Desktop.
public class FriedRice {
public static final int VEG_FRIED_RICE = 100;
public static final int CHICKEN_FRIED_RICE =101;
private String out = "";
public FriedRice(int TYPE){
switch (TYPE){
case VEG_FRIED_RICE: out = "VEG FRIED RICE @ plate"; break;
case CHICKEN_FRIED_RICE: out = "CHICKEN FRIED RICE @ plate"; break;
}
}
public String getFriedRice(){
return this.out;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment