Why not put a main() method in the Battle class and use that one main() method to start the execution of the program instead of having several Main classes?
The posted code does not compile...
Type: Posts; User: Norm
Why not put a main() method in the Battle class and use that one main() method to start the execution of the program instead of having several Main classes?
The posted code does not compile...
Please rename the classes so that are not two Main classes.
Then say which class and method doesn't do what you want it to do.
Why not put a main() method in the Battle class and use that one...
Which main() method are you talking about? I see two Main classes and they both have a main() method.
One method has much fewer statements in it than the other.
Having classes with the same name...