I'm a very beginner in JAVA, I can't run my project.
cmd said <identifier>expected;illegal start of expression;not a statement; ';'expected totally 5 errors
public class 1 {
public static void main(String[] args){
int A=2;
int B=2;
System.out.println(A);
}
}
You can't name your class a numeral 1
.
public class 1{ // <-- no
should be something like
public class One { // <-- the word one is fine
or (if possible) something meaningful like
public class Example { // <-- for example.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments