最赞回答 / 慕无忌3351045
不能用return sum,因为你的sum已经定义为函数名了可以改为其他名字,例如 public static int sum(){ int add = score1+score2; return add;}
2014-12-06