I was using J2EE Eclipse Indigo, and I have three class declare like this:
public interface ClassA { public static enum TYPE { TYPE1, TYPE2 }; } public i
You must write code either in a method or in a static block (assigning static values). Your System.out.println() is written into a class. Create method and put System.out.println() there.
static
System.out.println()
class