提示我輸出的和不正確,哪里錯(cuò)誤了,幫我看看
public?class?.HelloWorld{ ?????public?static?void?main(String[]?args){ ?????int?age1=24; ?????int?age2=18; ?????int?age3=36; ?????int?age4=27; ?????int?sum=age1+age2+age3+age4; ?????System.out.println("四個(gè)數(shù)之和為:?"+sum); ?????} }
2016-06-30
;的時(shí)候要是英文的不能是中文的.(也不知道是不是這個(gè)問題.)
2016-06-27
在eclipse文件夾里,直接打開名字為eclipse的應(yīng)用程序就可以了
2016-06-27
我拿eclipse跑了下你的代碼,結(jié)果是"四個(gè)數(shù)之和為: 105",應(yīng)該是沒錯(cuò)的,可能是你在輸出的時(shí)候四個(gè)數(shù)之和后面的冒號(hào)是英文輸入法下的,也可能多了個(gè)空格
2016-06-27
第一行public class HelloWorld{
}
你在HelloWorld前面多加了一個(gè)點(diǎn),你寫的是.HelloWorld