摘要: package operator; public class Demo4 { public static void main(String[] args) { //++自增 --自减 一元运算符 int a = 6; int b = a++;//执行完代码,先给b赋值,再自增 //a=a+1 Sys 阅读全文
posted @ 2021-10-11 23:08 xxm555 阅读(252) 评论(0) 推荐(0) 编辑
摘要: package operator; public class Demo3 { public static void main(String[] args) { //关系运算输出为布尔值:正确、错误 int a =5; int b =10; int c = 12; //取余,模运算 System.ou 阅读全文
posted @ 2021-10-11 23:07 xxm555 阅读(36) 评论(0) 推荐(0) 编辑