I have a project in NetBeans where two different classes have public static void main(String[] args) methods. When I press F6, the first class' main is always invoked. Why not the second? When I'm trying to display arguments of args, it says that this array is empty.
In the project properties, in the Categories, choose Run. then there is a Main Class. Set your main class there
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With