关系运算符: > < >= <= ==(判断左边跟右边的值是否相等)
计算优先级别:算数运算符 > 关系运算符 > 赋值运算符
1 class Operator09{
2 public static void main(String[ ]args){
3 System.out.println(1 > 2); //false
4 System.out.println(10 > 9); //true
5 System.out.println(5 != 3); //true
6 //优先级别:算数运算符 > 关系运算符 > 赋值运算符
7 System.out.println(9 % 2 == 0); //false
8 System.out.println(2 + 3 / 6 <= 4 * 2 % 5); //true
9 boolean b = 7 / 4 + 5 % 2 == 16 / 8 - 5 *2 % 3;
10 System.out.println("b = " + b); //false
11 }
12 }