摘要:
package operator; //逻辑运算符 public class Demo5 { public static void main(String[] args) { //与(and)或(or)非(取反) //符号语言分别是:&& || ! boolean a = true; boolean 阅读全文
posted @ 2025-08-28 16:41
冰涿
阅读(10)
评论(0)
推荐(0)
摘要:
package operator; public class Demo4 { public static void main(String[] args) { // ++ -- 自增 自减 一元运算符 int a = 1; int b = a++;//先赋值,后自增 //a = a+1; int c 阅读全文
posted @ 2025-08-28 01:35
冰涿
阅读(7)
评论(0)
推荐(0)
摘要:
package operator; public class Demo1 { public static void main(String[] args) { //二元运算符 //快捷键:ctrl+D 复制当前行到下一行 int a = 10; int b = 15; int c = 16; int 阅读全文
posted @ 2025-08-28 01:08
冰涿
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号