Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Pascal Surget
Added: Sep 12, 2018 12:30 PM
Views: 5
Tags: no tags
  1. switch(variable)
  2. {
  3. case 1:
  4.    //execute your code
  5. break;
  6.  
  7. case n:
  8.    //execute your code
  9. break;
  10.  
  11. default:
  12.    //execute your code
  13. break;
  14. }