Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Can anyone tell me--- In Java, the logical and operator (&&) compares the values <=5 is not a legal boolean expression. Like &&, <= is a binary On the surface, it may seem convenient to implicitly Let's take your example: Should <= compare 4 or inTokens.countTokens() relative to 5? For more details on complex boolean expressions, check out http://www.people.fas.harvard.edu/~ileshko/CSCIE-50a/notes/notes-complex-boolean-expressions.html It is linked off the site I maintain for my students: HTH,
Replies: |
Sponsored Links
|