Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public enum EnumWithBehavior {
  2. VALUE1() {
  3. public void foo() { System.out.println("1"); }
  4. },
  5. VALUE2() {
  6. public void foo() { System.out.println("2"); }
  7. },
  8. VALUE3() {
  9. public void foo() { System.out.println("3"); }
  10. };
  11. public abstract void foo();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement