Chapter 16
Switch Expressions, Records, and Other Recently Added Features
Key Skills & Concepts
Know the features of the expanded switch statement
Use a list of case constants with switch
Understand the switch expression
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.