Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (minutes > 0) {
- boolean visible = true;
- for (int a = 1; a <=12; a++){ // Se ejecuta 12 veces y cada ejecución dura 5 segundos -> 5*12 = 60 segundos
- rc.setVisible(visible);
- try {
- TimeUnit.SECONDS.sleep(5);
- } catch (Exception e) { }
- visible = !visible;
- }
- minutes--;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement