Solved.

Thanks.

Printable View

- 12-01-2010, 11:58 PMmancstaNewbie Question using the less than < operator
Solved.

Thanks. - 12-02-2010, 12:27 AMpbrockway2
In English "foo is 5 less than bar" can mean two different things:

foo == bar - 5

or

foo < bar - 5

Either of these two work as expressions in Java. They are boolean expressions: that is they have the value "true" or "false". The 5 in "*5*less than" is interpreted as subtraction ie as part of an arithmetic expression.

Say if this doesn't make sense.