Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. switch (expression) {
  2. case value1: {
  3. // code to be executed when expression evaluates to value1
  4. }
  5. case value2: {
  6. // code to be executed when expression evaluates to value2
  7. }
  8. ...
  9. case valueN: {
  10. // code to be executed when expression evaluates to valueN
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement