第二题:分析以下需求并实现
1.查看以下代码,并写出结果
public class Test02 {
public static void main(String[] args) {
int i1 = 5;
boolean result = (i1++ > 5) && (++i1 > 4);//false
System.out.println(result);//false
System.out.println(i1);//输出为6
}
}
第三题:分析以下需求并实现
1.查看以下代码,并写出结果
public class Test03 {
public static void main(String[] args) {
int i1 = 5;
boolean result = (i1++ > 5) || (++i1 > 4);
System