新手,求指教
public class Java1_9 {
static int score1=89;
static int score2=83;
public static int sum(){
return score1+score2;//请问这个返回的结果保存在哪个变量里了啊??还有不用返回值应该怎么写代码?
}
public static void main(String[] args) {
// TODO Auto-generated method stub
int allscore=Java1_9.sum();
System.out.println(allscore);
}
}