Topics
Decisions
- if, if-else and if-else-if ladder
- Nested if
- switch-case, default, break and fall-through
- Menu-driven programs and System.exit
Learning objectives
- Write a menu-driven program using switch-case.
Labs for this chapter are on the way
We are building worlds, labs and stories for Conditional Statements in Java. Meanwhile, practise its questions or explore the rest of Computing & AI.