You can write your code in main method , or somewhere else and call that in the main method in the order in which you want to execute it. The method main must be declared public , static , and void .
You can write your code in main method , or somewhere else and call that in the main method in the order in which you want to execute it. The method main must be declared public , static , and void .