摘要:
运算符 算数运算符:+,-,*,/,++,-- 赋值运算符:= 关系运算符:>,<,>=,<=,==,!=,instanceof 逻辑运算符:&&,||,! 位运算符:&,|,^,~,>>,<<,>>>(了解) 条件运算符:? 扩展赋值运算符:+=,-=,*=,/= 阅读全文
posted @ 2022-04-09 16:16
努力努努力
阅读(19)
评论(0)
推荐(0)
摘要:
package operator;public class Demo04 { public static void main(String[] args) { //++ -- 自增,自减 一元运算符 int a =3; System.out.println(a); int b =a++;//执行完这 阅读全文
posted @ 2022-04-09 16:08
努力努努力
阅读(23)
评论(0)
推荐(0)
摘要:
package operator;public class Demo03 { public static void main(String[] args) { //关系运算符返回的结果: 正确 错误 布尔值表示 int a =10; int b =20; int c =21; //取余,模运算 Sy 阅读全文
posted @ 2022-04-09 16:07
努力努努力
阅读(21)
评论(0)
推荐(0)
摘要:
package operator;public class Demo02 { public static void main(String[] args) { long a =123123123123123l; int b =123; short c =10; byte d =8; System.o 阅读全文
posted @ 2022-04-09 16:07
努力努努力
阅读(18)
评论(0)
推荐(0)
摘要:
package operator;public class Demo01 { public static void main(String[] args) { // 二元运算符 int a =10; int b =20; int c =25; int d =25; System.out.printl 阅读全文
posted @ 2022-04-09 16:06
努力努努力
阅读(22)
评论(0)
推荐(0)
浙公网安备 33010602011771号