Chapter 16

Switch Expressions, Records, and Other Recently Added Features

image

Key Skills & Concepts

image Know the features of the expanded switch statement

image Use a list of case constants with switch

image Understand the switch expression

image Use an arrow case with ...

Get Java: A Beginner's Guide, Ninth Edition, 9th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.