這是這裡給的錯誤訊息:
/tmp/code_888616.java:2: class a003 is public, should be declared in a file named a003.java
public class a003
^
1 error
這是我寫的程式:
import java.util.Scanner;
public class a003
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int M,D,S;
M = sc.nextInt();
D = sc.nextInt();
S = (M*2+D)%3;
if(S == 0)
System.out.println("普通");
if(S == 1)
System.out.println("吉");
if(S == 2)
System.out.println("大吉");
}
}
請問一下這錯在哪裡??