0
Is it possible to create a separate class for main method in java?
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 ();
0
thank you