用来对两个操作数进行比较运算并得出最终的boolean结果
> 判断大于是否成立
< 判断小于是否成立
>= 判断大于或等于是否成立
<= 判断小于或等于是否成立
== 判断等于否成立
!= 判断不相等是否成立
public class RelationalOperators{
public static void main(String []args){
int m = 34;
int f = 40;
int h = 4;
boolean bool0 = m > f;
System.out.println(bool0);//输出结果为false
boolean bool2 = m <= f;
System.out.println(bool2);//输出结果为true
System.out.println((m+c)>f);//输出结果为false
System.out.println((m+6) == f);//输出结果为true
System.out.println((m+c)!=f);//输出结果为true
}
}