I want to create a simple java class with the main method, but when I compile my code, I get this error message:
Error: the main method was not found in the errors of the .TestErrors class, please define the main method: public static void main (String [] args)
This is the source code:
package errors;
public class TestErrors {
public static void main(String[] args){
System.out.println("hello");
}
}
Why am I seeing this error, as you may notice that alreader has declared the main method!
source
share