已采纳回答 / Ziqi_Wang
if (age>60); else if (40<age<=60);else if (18<age<=40);请把这三句后面的分号 全都去掉另外这两个else if里面的条件也不可以这么写请改成else if(age>=40 && age <= 60)else if(age >=18 && age <40)
2016-06-22
最新回答 / weibo_看我的蟹钳_03649758
public class shiyan2{ public static void main(String[] args) { int age=25; String chengnian; if(age>18) { chengnian="成年" ; }else { chengnian="未成年"; }System.out.println(chengnian);}}
2016-06-21
已采纳回答 / SmileTerry
https://www.eclipse.org/downloads/download.php?file=/oomph/epp/mars/R2/eclipse-inst-win64.exe 进网页以后等一会儿就会出现下载提示。
2016-06-19