A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to Call main() method another class from one class.
Joined: Oct 02, 2008
Jun 25, 2009 05:04:44
can any one tell me how to call main() of One class from another class
Joined: Feb 24, 2006
Jun 25, 2009 05:45:34
AnotherClass.main() assuming main() is public static. This post needs to be in Java in General (Beginner)
SCJP 6 articles
SCJP 5/6 mock exams
More SCJP Mocks
Joined: Oct 27, 2005
Jun 25, 2009 05:59:22
Moving to the beginner forum.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Sep 28, 2004
Jun 25, 2009 06:13:41
And assuming this main() method is the method that can be called from the command line, you also need to create a
array, as that methods takes a string array -- and fill in the params of course.
Java Threads, 3rd Edition
Jini in a Nutshell
Java Gems (contributor)
Don't get me started about those stupid
subject: How to Call main() method another class from one class.
How to call another class when there is no source code?
Overloading wih static methods
How to call one class main method from another class main method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014