Java Java Data Structures Efficiency! Switches

Tojo Alex
PRO
Tojo Alex
Pro Student 13,331 Points

Don't get the switches quiz

Could you help me with the question 1 of 2 which has the missing blanks.

2 Answers

Bob Allan
Bob Allan
10,899 Points

There are only four ingredients in switch/case statements:

  1. Switch
  2. Case
  3. Break
  4. Default (optional, but good to have most of the time)

I hope this helps.