- 关系运算符:>,<,>=,<=,==,!=
关系运算符返回的结果:正确(true),错误(false)
int a = 10;
int b = 20;
System.out.println(a>b); //返回false
System.out.println(a<b); //返回true
System.out.println(a==b); //返回false
System.out.println(a!=b); //返回true
- 关系运算符:>,<,>=,<=,==,!=
关系运算符返回的结果:正确(true),错误(false)
int a = 10;
int b = 20;
System.out.println(a>b); //返回false
System.out.println(a<b); //返回true
System.out.println(a==b); //返回false
System.out.println(a!=b); //返回true