Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (expression) {
- case value1: {
- // code to be executed when expression evaluates to value1
- }
- case value2: {
- // code to be executed when expression evaluates to value2
- }
- ...
- case valueN: {
- // code to be executed when expression evaluates to valueN
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement