class inside main method?

can we write class inside tne main method in java? If yes kindly explain with example.
[93 byte] By [prakash27a] at [2007-11-26 14:35:06]
# 1
> can we write class inside tne main method in java? If> yes kindly explain with example.yes. I won't explain with example, because you can just try it for yourself. main is just a method like any other, it has no special meaning or magic to it
georgemca at 2007-7-8 8:15:54 > top of Java-index,Java Essentials,New To Java...
# 2
THAT'S NOT TRUE GEORGE, AND YOU KNOW IT!!! ... main is a very special method that if called exactly right will create an entire Java library that few - except us insiders - know anything about ... it's the real Java Library! Shhhhhhhh, don't let the cat out though. ;o}
abillconsla at 2007-7-8 8:15:54 > top of Java-index,Java Essentials,New To Java...
# 3
Dammit abillconsl , now look what you've done. We'll probably get the next question "Can i have a main method inside my class that's inside my pants that's inside my main method?".Ted.
ted_trippina at 2007-7-8 8:15:54 > top of Java-index,Java Essentials,New To Java...
# 4
> can we write class inside tne main method in java? If> yes kindly explain with example.[url= http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html]The Java?Tutorial - Nested Classes[/url]~
yawmarka at 2007-7-8 8:15:54 > top of Java-index,Java Essentials,New To Java...