if语句后面习题的答案在哪
if判断语句很简单的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是偶数");
}
}
}
可参考下面评论!