为什么我的if条件不成立,运行结果还是对的呢?是哪里出了问题?
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one%2!=0);
System.out.println("one是偶数");
}
}
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one%2!=0);
System.out.println("one是偶数");
}
}
2018-09-12
举报