提交代码报错
为什么代码打对了还是报错?
public class HelloWorld{ static int score1=86; static int score2=92; public static int sum(){ return score1+score2; } public static void main(String[] args){ int allScore=HelloWorld.sum(); System.out.println("总分:" + allScore); }