Guest User

Untitled

a guest
Feb 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. package a.b.c.d
  2.  
  3. public class myClass {
  4. public enum State {
  5. START, FAIL, SUCCESS
  6. }
  7.  
  8. myClass() { // constructor
  9.  
  10. }
  11. }
  12.  
  13. // somewhere else
  14.  
  15. package q.w.e.r
  16.  
  17. import a.b.c.d.myClass;
  18.  
  19. public class otherClass {
  20.  
  21. aMethod(myClass.State state) {
  22. switch(state) {
  23. case myClass.State.START:
  24. //do things
  25. break;
  26. }
  27. }
  28.  
  29. public static main() {
  30. myClass.State a = myClass.State.FAIL;
  31. aMethod(a);
  32. }
  33. }
Add Comment
Please, Sign In to add comment