为什么为什么不断给我一个系统软件包错误?

时间:2019-09-05 06:03:29

标签: java

我在Java处不断收到错误,而不是为该文件创建.class文件,而是在命令提示符下显示了错误

public class TotalAndAverage {
public static void main (String[] arg) {
    final int count = 6;
    double score0 = 98.05;
    double score1 = 100.00;
    double score2 = 80.50;
    double score3 = 62.65;
    double score4 = 77.25;
    double score5 = 90.93;
    double total = score0 + score1 + score2 + score3 + score4 + score5;
    double average = total/count;
    int averageInt = (int)average;
    int average2Digit = (int)(average * 100) - averageInt *100;

    System.out.println("Total Score is: \t" + total);
    System.out.println("Average is \t" + average);
    system.out.println("Average Score is: \t" + averageInt + "." + average2Digit);
}
}

它显示

  

错误:打包系统不存在

2 个答案:

答案 0 :(得分:1)

最后一行应为

System.out.println(.....) 

不是system

答案 1 :(得分:1)

当您说something.somethingElse时,编译器会认为您正在做packageName.classname

顺便说一句,system.out.println("Average Score is: \t" + averageInt + "." + average2Digit);system部分作为 S 系统。