请问我这是哪错了
public class HelloWorld {
// 定义静态变量score1
static int score1 = 86;
// 定义静态变量score2
static int score2 = 92;
// 定义静态方法sum,计算成绩总分,并返回总分
public static int sum() {
int kxf = 0;
kxf = score1 + score2;
return kxf;
}
public static void main(String[] args) {
// 调用静态方法sum并接收返回值
int allScore = HelloWorld.kxf();
System.out.println("总分:" + allScore);
}
}