![]() |
![]() |
![]() |
![]() |
![]() |
|
The following expression, for example, evaluates to true only if the
value of the length variable is between 60 and 90:
60 < length && length < 90
Accordingly, the display statement embedded in the following if
statement is evaluated only if the value of the length variable is
inside the 60-to-90 range.
if (60 < length && length < 90)
System.out.println("The length is normal.");