Given this very basic program:
public class Blah {
public static void main (String [] args) {
doStuff(); //Calls the method doStuff
}//Closes main
public static void doStuff(); {
severalCommands;
} //Closes doStuff
} //Closes public class blah
I'd like to be able to not have to make the method doStuff() static and
would like to simply call it "pubic void doStuff" but I get an error message
telling me I can not call a non-static class from a static method (since
main is static). Is there a way to get around this so that doStuff() can
still be non-static?
Thanks.
-AckbarJedi
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----