Here is my code project for school. I made sure to do everything right, but I still get the same error. Can someone please explain to me what I'm doing wrong?
class Main {
public static void main(String[] args) {
SammysMotto2.main();
}
}
and then for SammysMotto2.java:
class SammysMotto2 {
public static void main() {
System.out.println("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
System.out.println("S Sammy's makes it fun in the sun S");
System.out.println("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
}
}
@NoahJospeh why are you not calling it as main? SammysMotto2 is a class, and it's a static class so that means there is no constructor. You are going to have to, in your code, have: SammysMotto2.main(); instead
"Compiler Exit Status 1"
Here is my code project for school. I made sure to do everything right, but I still get the same error. Can someone please explain to me what I'm doing wrong?

Have you tried:
Main.java
and then for
SammysMotto2.java
:main
?SammysMotto2
is a class, and it's a static class so that means there is no constructor. You are going to have to, in your code, have:SammysMotto2.main();
insteadit appears you didn't change anything too btw
@NoahJospeh