!= (inequality)ControlRelational OperatorsWeb & Application
int a = 22;
int b = 23;
if(a != b) {
println("variable a is not equal to variable b");
}
Determines if one expression is not equivalent to another.
value1 != value2int, float, char, byte, boolean, Stringint, float, char, byte, boolean, String
> (greater than)
< (less than)
>= (greater than or equal to)
<= (less than or equal to)
== (equality)
1.0OperatorPDE