What does that even mean?
Type: Posts; User: KevinWorkman
What does that even mean?
Ah. Assuming he has no other problems, then yeah, it should work as long as he compiles and runs the correct file.
I'd still be willing to bet that he was using the wrong file name. I wouldn't...
He also typed the error message in all caps, eliminating any assurances that the error is talking about a.java and not A.java or A.JAVA or A.jAvA.
There is also the likelihood that he didn't copy...
His code didn't compile because, presumably, he was trying to compile a class that didn't exist.
Say his file was named a.java- Putting aside the fact that class names should start with a capital...
This is absolutely not true. All of the following work fine:
class Main {
public static void main(String[] ar){
System.out.println("Works");
}
}