0

Is it possible to create a separate class for main method in java?

10th Sep 2017, 10:18 AM
Mohamed salim
2 Antworten
0
Yes, create your logic in one class i.e. Logic.java then create a separate class that instantiates it in the main i.e. Runner.java main... Logic logic = new Logic (); logic.doStuff ();
10th Sep 2017, 4:53 PM
Divine M
Divine M - avatar
0
thank you
10th Sep 2017, 6:17 PM
Mohamed salim