Guest User

Untitled

a guest
Apr 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class breakFlag {
  2. public static void main(String[] args) {
  3.  
  4. boolean done = false;
  5. int i=0;
  6. while (done == false && i<5){
  7. int j = 0;
  8. while (j<5){
  9. System.out.println(i+";"+j);
  10. j++;
  11. if(i+j>5) done = true;
  12. }
  13. if (done) break; // can skip the "================"
  14. System.out.println("===================");
  15. i++;
  16. }
  17.  
  18. }
  19. }
Add Comment
Please, Sign In to add comment