Java Reference
In-Depth Information
Notice the parentheses surrounding the logical operations inside the
println( )
state-
ments. They are necessary because of the precedence of Java's operators. The
+
oper-
ator is higher than the logical operators.
5.
Compile and run the program. The following table is displayed.