Lesson 6 of 24 · +130 xp
Switch
Multi-branch.
Explained simply
Your task
Write: switch (x) { case 1: System.out.println("one"); break; default: break; }
Lesson 6 of 24 · +130 xp
Multi-branch.
Write: switch (x) { case 1: System.out.println("one"); break; default: break; }