+ 2

Hello guys, this is my code and I have an error in my code shall anyone plz tell me which error is causing me to run my code.

https://code.sololearn.com/cGEG8XpFUGEY/?ref=app

8th Aug 2018, 3:22 AM
Khokhar Jeelani
Khokhar Jeelani - avatar
2 Respostas
+ 3
Ok so the problem is that your program does not have any main method. In c# and all other object oriented languages like Java, at least one of your classes must have a main method which acts as the entry point for a program. public static void main (String[] args){ //some code } This is how you declare a main method. Please include a main method into your code and put some code into it, like accepting data to work on, etc. Then your program will run fine.
8th Aug 2018, 4:53 AM
Vedant Bang
Vedant Bang - avatar
+ 3
ok Vedant Bang thank you.
8th Aug 2018, 4:56 AM
Khokhar Jeelani
Khokhar Jeelani - avatar