/** * Created by xabcd on 2019/2/12. */ public class TestJava6_12 {public static void main(String args[]) { boolean t = (1+1 == 2) && (1+2 ==3); System.out.println("(1+1 ==2 )&& (1+2 == 3):" +t); } } 结果: (1+1 ==2 )&& (1+2 == 3):true
/** * Created by xabcd on 2019/2/12. */ public class TestJava6_12 {public static void main(String args[]) { boolean t = (1+1 == 2) && (1+2 ==3); System.out.println("(1+1 ==2 )&& (1+2 == 3):" +t); } } 结果: (1+1 ==2 )&& (1+2 == 3):true