+ 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.
2 Answers
+ 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.
+ 3
ok Vedant Bang thank you.