Kevin Tysen wrote:Thank you. It's useful to know that. But actually, when I came up with this question, I was trying to make an anonymous inner class to implement an interface, and I couldn't think of a good name for the class, so that is why I wanted to make it anonymous. Eventually I just made a class within a method and then I gave it a real lame name, something like MyClass (don't remember).
Don't forget that you can also make it
private (if it's a nested class) or package-private (if it isn't).
That way people don't have to know about your awful naming standards.
Winston