/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
enum TrickyEnum
{
TrickyEnum1, TrickyEnum2;
static int count = 123;
TrickyEnum()
{
incrementCount();
}
private static void incrementCount()
{
count++;
System.
out.
println("Count: " + count
); }
public static void showCount()
{
System.
out.
println("Count: " + count
); }
}
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
TrickyEnum te = TrickyEnum.TrickyEnum1;
TrickyEnum.showCount();
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgplbnVtIFRyaWNreUVudW0KewogICAgVHJpY2t5RW51bTEsIFRyaWNreUVudW0yOwoKICAgIHN0YXRpYyBpbnQgY291bnQgPSAxMjM7CgogICAgVHJpY2t5RW51bSgpCiAgICB7CiAgICAgICAgaW5jcmVtZW50Q291bnQoKTsKICAgIH0KCiAgICBwcml2YXRlIHN0YXRpYyB2b2lkIGluY3JlbWVudENvdW50KCkKICAgIHsKICAgICAgICBjb3VudCsrOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiQ291bnQ6ICIgKyBjb3VudCk7CiAgICB9CgogICAgcHVibGljIHN0YXRpYyB2b2lkIHNob3dDb3VudCgpCiAgICB7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJDb3VudDogIiArIGNvdW50KTsKICAgIH0KfQovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVRyaWNreUVudW0gdGUgPSBUcmlja3lFbnVtLlRyaWNreUVudW0xOwoJCVRyaWNreUVudW0uc2hvd0NvdW50KCk7Cgl9Cn0=