Less than or equal to operator
From Coderwiki
More actions
One common comparison operator is the less than or equal to operator.
This operator will return true if the value on the left is less than or the same as the value on the right of the operator.
Syntax
edit edit sourceIn most languages, the less than or equal to operator is represented by a <= symbol.
Example
edit edit sourceboolean a = 4 <= 6; // true
boolean b = 7 <= 7; // true
boolean c = 6 <= 5; // false