摘要: public class Demo07 { public static void main(String[] args) { int a = 10; int b = 20; a += b; a -= b; System.out.println(a); //字符串连接符 + , String Syst 阅读全文
posted @ 2022-07-09 10:59 jy饺子 阅读(19) 评论(0) 推荐(0)
摘要: public class Demo03 { public static void main(String[] args) { //关系运算符返回的结果:正确,错误 布尔值\ //if int a = 10; int b = 20; int c = 21; System.out.println(c%a 阅读全文
posted @ 2022-07-09 10:52 jy饺子 阅读(35) 评论(0) 推荐(0)
摘要: public class Demo01 { public static void main(String[] args) { //二元运算符 int a = 10; int b = 20; int c = 30; int d = 40; System.out.println(a+b); System 阅读全文
posted @ 2022-07-09 10:51 jy饺子 阅读(33) 评论(0) 推荐(0)
摘要: public class Demo07 { public static void main(String[] args) {// int a ,b,c;// int a = 1, b=2 , c=3;//程序可读性 String name = "jiaozi"; char x = 'X'; doub 阅读全文
posted @ 2022-07-09 08:18 jy饺子 阅读(46) 评论(0) 推荐(0)