布尔运算符:
public class diff {
public static void main(String[] args){
if ((5 > 6) & (4 > 2)) {
System.out.println(11111);
}
else { System.out.println(2222);};
}
}
public class diff {
public static void main(String[] args){
if ((5 > 6) | (4 > 2)) {
System.out.println(11111);
}
else { System.out.println(2222);};
}
}
public class diff {
public static void main(String[] args){
if (!(5 > 6)) {
System.out.println(11111);
}
else { System.out.println(2222);};
}
}