4.2 The Switch Statement
Sometimes, you may need to use a variety of
else if statements back to back, to check one value against another. This process is referred to as branching, and Java has a
switch statement made specifically for this kind of task. Let’s practice it in this lesson.