为什么if(one / 2 == 0) 运行通过却不输出结果?
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-06-11
举报