fork(1) download
  1. class Program {
  2. public static void main (String[] args) {
  3. for (int x = 0; x < 10; x++) {
  4. if (x == 6) continue;
  5. if (x == 8) break;
  6. switch (x) {
  7. case 0:
  8. System.out.println("zero");
  9. continue;
  10. case 1:
  11. System.out.println("um");
  12. continue;
  13. case 2:
  14. System.out.println("dois");
  15. break;
  16. default:
  17. System.out.println(x);
  18. break;
  19. }
  20. }
  21. }
  22. }
  23.  
  24. //https://pt.stackoverflow.com/q/318636/101
Success #stdin #stdout 0.1s 27784KB
stdin
Standard input is empty
stdout
zero
um
dois
3
4
5
7