摘要: class Demo01 { public static void main(String[] args) { //与 并且,只有两边都为true,结果为true,只要一边为false,结果为false /*System.out.println(true & true); //true System 阅读全文
posted @ 2022-04-18 01:13 猫java猫 阅读(114) 评论(0) 推荐(0)
摘要: //1、(操作符)有如下代码: int a = 5; // 5 6 5 6 int b = (a++)+(--a)+(++a); // 5+5+6=16 //问执行完之后,b 的结果是多少? System.out.println("b的结果为"+b); //2、(基本类型的运算)一家商场在举行打折促 阅读全文
posted @ 2022-04-18 01:08 猫java猫 阅读(228) 评论(0) 推荐(0)