What should I put in the main method?

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 .

Sizin İçin Seçtik  Why do we use main method?

Leave a Reply

Your email address will not be published. Required fields are marked *