 
		JyunYu
2016-04-17 00:36
为什么代码打对了还是报错?
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);
    
} 
				
知识点还没有完全掌握!还需努力!
 
				少一个“}”
Java入门第二季
531292 学习 · 6327 问题
相似问题