摘要:
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语言中,&的优先级 阅读全文
posted @ 2016-02-17 21:40
platycoden
阅读(460)
评论(0)
推荐(0)
摘要:
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= 阅读全文
posted @ 2016-02-17 19:43
platycoden
阅读(371)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2016-02-17 18:52
platycoden
阅读(555)
评论(0)
推荐(0)
摘要:
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 = 阅读全文
posted @ 2016-02-17 18:05
platycoden
阅读(698)
评论(0)
推荐(0)
浙公网安备 33010602011771号