Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. enum Type {
  2.  
  3. TYPE1(1),
  4.  
  5. TYPE2(2),
  6. ...
  7.  
  8. private int constant;
  9.  
  10. Type(int constant) {
  11. this.constant = constant;
  12. }
  13. }
  14.  
  15. enum SubType {
  16.  
  17. SUBTYPE1(1),
  18.  
  19. SUBTYPE2(2),
  20.  
  21. SUBTYPE3(3),
  22. ...
  23.  
  24. private int constant;
  25.  
  26. SubType(int constant) {
  27. this.constant = constant;
  28. }
  29. }
Add Comment
Please, Sign In to add comment