摘要: 阅读全文
posted @ 2022-07-03 08:31 九五小庞 阅读(4) 评论(0) 推荐(0) 编辑
摘要: public class Demo5 { public static void main(String[] args) { int a=10; int b=20; a+=b; System.out.println("a+"+a); //当前面为String类型时,自动转为Sting System.o 阅读全文
posted @ 2022-07-03 08:24 九五小庞 阅读(45) 评论(0) 推荐(0) 编辑
摘要: public class Demo4 { public static void main(String[] args) { //逻辑运算符的使用 boolean a=true; boolean b=false; System.out.println("a&&b:"+(a&&b)); System.o 阅读全文
posted @ 2022-07-03 08:05 九五小庞 阅读(16) 评论(0) 推荐(0) 编辑