摘要:
扩展赋值运算符package operator;public class Demo07 { public static void main(String[] args) { int a = 10; int b = 20; a+=b; //a = a+b a-=b; //a = a-b System. 阅读全文
摘要:
instance of 也是运算符,面向对象 时再说 package operator;public class Demo01 { public static void main(String[] args) { //二元运算符 //Ctrl + D : 复制当前行到下一行 int a = 10; 阅读全文
摘要:
不建议在一行里面定义多个值 public class Demo07 { public static void main(String[] args) { //int a=1,b=2,c=3 //程序可读性不好,分成三行写 String name = "qinjiang"; char x = 'X'; 阅读全文