Advertisement
haniherbertho

Untitled

Jul 11th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. int stepToDo = 0;
  2. stepToDo = (currScreen.equals("10052") && action.equals("20890")) ? (int)MyEnum.StepA : stepToDo;
  3. stepToDo = (currScreen.equals("20893") && action.equals("20892")) ? (int)MyEnum.StepB : stepToDo;
  4.  
  5.  
  6. Tapos meron ka lang switch case na
  7. switch (stepToDo)
  8. case MyEnum.StepA:
  9. PrivateMethodForStepA();
  10. break;
  11. case MyEnum.StepB:
  12. PrivateMethodForStepB();
  13. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement