Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public class TesteSwitch {
  2. public static void main(String[] args) {
  3. int i = 1;
  4. switch (i) {
  5. case 1:
  6. System.out.println(1);
  7. break;
  8.  
  9. case 2 :
  10. System.out.println(2);
  11. break;
  12.  
  13. case 3:
  14. System.out.println(3);
  15. break;
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement