February 2014
Beginner
1248 pages
62h 25m
English
Chapter 4 discussed the if single-selection statement and the if...else double-selection statement. The switch multiple-selection statement performs different actions based on the possible values of a constant integral expression of type byte, short, int or char. As of Java SE 7, the expression may also be a String, which we discuss in Section 5.7.
Read now
Unlock full access