Abstract
The switch statement is a mechanism for controlling the flow of the program based on exact values of one data. Often a switch statement is used in a menu, where the action to be performed is selected based on a value.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Samuel Langhorne Clemens (November 30, 1835 to April 21, 1910), known by his pen name Mark Twain, was an American writer.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Ogihara, M. (2018). The Switch Statements. In: Fundamentals of Java Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-89491-1_10
Download citation
DOI: https://doi.org/10.1007/978-3-319-89491-1_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-89490-4
Online ISBN: 978-3-319-89491-1
eBook Packages: Computer ScienceComputer Science (R0)