杰杰郭果
2016-05-21 12:02
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one%2=0);{
System.out.println("one是偶数");
}
else{
System.out.println("one不是偶数");
}
}
}
左括号匹配离他最近的右括号 if(one%2=0);改成 if(one%2==0)
Java入门第一季(IDEA工具)
1168752 学习 · 18758 问题
相似问题