/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
static enum Fruit { Apple, Orange, Banana };
static enum Animal { Cat, Dog, Horse };
{
try {
Enum f = Fruit.Apple;
Comparable a
= Animal.
Cat; // if Enum then line 55 will not appear in trace f.compareTo(a);
x.
printStackTrace(System.
out); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXN0YXRpYyBlbnVtIEZydWl0IHsgQXBwbGUsIE9yYW5nZSwgQmFuYW5hIH07CglzdGF0aWMgZW51bSBBbmltYWwgeyBDYXQsIERvZywgSG9yc2UgfTsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCXRyeSB7CgkJCUVudW0gZiA9IEZydWl0LkFwcGxlOwoJCQlDb21wYXJhYmxlIGEgPSBBbmltYWwuQ2F0OyAvLyBpZiBFbnVtIHRoZW4gbGluZSA1NSB3aWxsIG5vdCBhcHBlYXIgaW4gdHJhY2UKCQkJZi5jb21wYXJlVG8oYSk7CgkJfSBjYXRjaCAoRXhjZXB0aW9uIHgpIHsKCQkJeC5wcmludFN0YWNrVHJhY2UoU3lzdGVtLm91dCk7CgkJfQoJfQp9