摘要:
Java的循环结构 while循环结构 先判断后循环 public class Demo09 { public static void main(String[] args) { //从1输入到100 int i = 0; //while (布尔表达式) {循环内容} while (i<100){ 阅读全文
摘要:
+= -= *= /= += public class Demo6 { public static void main(String[] args) { int a = 50; int b = 40; System.out.println(a+=b);//90 }} -= public class 阅读全文
摘要:
逻辑运算符 &&与运算符,同为true结果为true public class Demo5 { public static void main(String[] args) { boolean a = true; boolean b = false; boolean c = true; System 阅读全文
摘要:
java中的自增自减和幂方写法 java中的自增 a++或++a public class Demo4 { public static void main(String[] args) { int a = 3; int b = a++; //++相当于a=a+1,但是a++是先给b赋值(b=未加时的 阅读全文
摘要:
java基本运算符解析(1) 基本加减乘除间运算 public class Demo1 { public static void main(String[] args) { int a = 20; int b = 30; int c = 40; int d = 25; System.out.prin 阅读全文