== (equality)ControlRelational OperatorsWeb & Application
int a = 23;
int b = 23;
if(a == b) {
println("variables a and b are equal");
}
Determines if two values are equivalent. The equality operator is different from the assignment operator.
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)
!= (inequality)
1.0OperatorPDE