Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum EnumWithBehavior {
- VALUE1() {
- public void foo() { System.out.println("1"); }
- },
- VALUE2() {
- public void foo() { System.out.println("2"); }
- },
- VALUE3() {
- public void foo() { System.out.println("3"); }
- };
- public abstract void foo();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement