a^b:叫逻辑异或,当a和b不同时,则结果为tue,否则为false
public class operator {public static void main(String[] args) {boolean b = (10 > 1) ^ (3 > 5);System.out.println(b); // true}}
时间:2018-08-20 19:57:31
a^b:叫逻辑异或,当a和b不同时,则结果为tue,否则为false
public class operator {public static void main(String[] args) {boolean b = (10 > 1) ^ (3 > 5);System.out.println(b); // true}}