Skip to content

Instantly share code, notes, and snippets.

@xcv58
Last active May 19, 2017 23:36
Show Gist options
  • Save xcv58/78a8c9272bdfd08a8c037ea25a1bb8db to your computer and use it in GitHub Desktop.
Save xcv58/78a8c9272bdfd08a8c037ea25a1bb8db to your computer and use it in GitHub Desktop.
public class Hello {
public enum Test {
A("A"), B("B"), C("C"), D("D");
public static String a = "a";
{
System.out.println("Hi Test");
}
Test(String test) {
System.out.println("Init, " + test);
}
}
public static void main(String[] args) throws Exception {
System.out.println("Hello World!");
// System.out.println(Test.class);
// System.out.println(Test.A);
// System.out.println(Test.a);
// Class.forName("Test");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment