Subhash Pavuskar wrote:http://techno-cratic.blogspot.in/2008/11/many-public-classes-in-1-java-file.html . . . .
There is at least one serious error in that link. I’d ignore it if I were you.
It would be more useful to see the error messages. How did you attempt to compile that class? As Jeff has already said, there are no errors in what you posted.