My class don't have main() . So when i run the particular class i got the following run time error: Exception in thread "main" java.lang.NoSuchMethodError: main
but i want to see my System.out.println..output....without using main()... Any way?
how is using main from another class "not using main"?? You're still using it in class B, you're just not using it in class A. I don't think that counts as "(not) using main()".
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I could be charged as an accessory for showing you this, but...
Note: The System.exit(0) statement allows the application to get out of Dodge before the Sheriff slaps it with a "NoSuchMethodError." [ March 03, 2005: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Boo! Hiss! That's pretty sneaky, man! I'll bet you've entered code obfuscation contests before. I like it, though. It shows a pretty good understanding of the Java language. I definitely learned something today!
James Carman, President<br />Carman Consulting, Inc.