摘要: public class Demo01 { public static void main(String[] args) { //字符串连接符 + String int a=20; int b=10; System.out.println(""+a+b); System.out.println(a+ 阅读全文
posted @ 2022-03-13 21:38 HFUUwzy 阅读(54) 评论(0) 推荐(0)
摘要: //位运算public class Demo01 { public static void main(String[] args) { /* A = 0011 1100 B = 0000 1101 A&B = 0000 1100 两位都是1为1; A|B = 0011 1101 两位都是0为0; A 阅读全文
posted @ 2022-03-13 21:03 HFUUwzy 阅读(24) 评论(0) 推荐(0)
摘要: public class Demo01 { //短路运算 public static void main(String[] args) { int a=5; boolean b = (a<4)&&(a++<4); System.out.println(b); System.out.println(a 阅读全文
posted @ 2022-03-13 20:40 HFUUwzy 阅读(46) 评论(0) 推荐(0)