Advertisement
Guest User

Untitled

a guest
Sep 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. while (minutes > 0) {
  2. boolean visible = true;
  3. for (int a = 1; a <=12; a++){ // Se ejecuta 12 veces y cada ejecución dura 5 segundos -> 5*12 = 60 segundos
  4. rc.setVisible(visible);
  5. try {
  6. TimeUnit.SECONDS.sleep(5);
  7. } catch (Exception e) { }
  8. visible = !visible;
  9. }
  10. minutes--;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement