Solved.

Thanks.

Printable View

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

Thanks. - 12-01-2010, 11:27 PMpbrockway2
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.