摘要:
1 class Demo04{ 2 public static void main(String[] args){ 3 //逻辑运算符 4 5 //例1 6 System.out.println(true | false & false); 7 //结果 true 8 //Java语言中,&的优先级 阅读全文
摘要:
1 class Demo03{ 2 public static void main(String[] args){ 3 //关系运算符 == 4 5 //例1 6 int a = 10; 7 int b = 10; 8 double c = 10.0; 9 System.out.println(a= 阅读全文
摘要:
1 class Demo02{ 2 public static void main(String[] args){ 3 //算数运算符 +,-,*,/,%,++,-- 4 5 //例1 6 int a = 1; 7 int b = 2; 8 int c = 3; 9 System.out.print 阅读全文
摘要:
1 class Demo01{ 2 public static void main(String[] args){ 3 //赋值运算符 = 4 5 //例1 6 int a = 1; 7 System.out.println(a); 8 //结果 1 9 10 11 //例2 12 int a = 阅读全文