PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
5 sec ago
Untitled
6 sec ago
Untitled
7 sec ago
Untitled
9 sec ago
Untitled
10 sec ago
Untitled
11 sec ago
Take Better Travel Photos
12 sec ago
American Woodworker #166
13 sec ago
Untitled
By: a guest on
Jul 23rd, 2012
| syntax:
None
| size: 0.30 KB | hits: 17 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
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();
}
create a
new version
of this paste
RAW Paste Data
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(); }