Showing posts with label debugging. Show all posts
Showing posts with label debugging. Show all posts

Tuesday, March 2, 2010

Debugging: Class, interface, or enum expected.

Java's error messages aren't always very meaningful - to novices at least. Take this, what we might imagine to be a fairly common error:

Class, interface, or enum expected.

Now, I know what it means, but would a new programmer? To understand this message, you surely need to know what an interface or an enum is - neither of which are likely to be taught in the first few lessons.