fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. public class Main{
  9. public static void main(String[] args) {
  10. int n=0;
  11. while(n<10) {
  12. System.out.println(n); n++; // moved here
  13. if(n >= 5) {
  14. break;
  15. }
  16. else {
  17. break;
  18. }
  19. // removed here
  20. }
  21. }
  22. }
Success #stdin #stdout 0.06s 49028KB
stdin
Standard input is empty
stdout
0
1
2
3
4