Created
December 11, 2016 18:58
-
-
Save michael-simons/f002a7d8be4827936a0ff8e3e901e516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foobar { | |
public enum Bazbar { | |
BAR, | |
BAZ {public void fump() {System.out.println("Baz");}}, | |
FUMP; | |
public void fump(){System.out.println("Bazbar");} | |
} | |
public static void main(String...a) { | |
Bazbar.BAR.fump(); | |
Bazbar.BAZ.fump(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment