Skip to content
Snippets Groups Projects
Commit d4f33aa9 authored by BENMANSOUR Mohammed abdelhadi's avatar BENMANSOUR Mohammed abdelhadi
Browse files

Tâche 4

parent 172e76d3
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ public class Main {
int min=00;
int heurs=00;
int count_alarme=0;
public void notifyTick() {
seconde++;
......@@ -32,6 +33,9 @@ public class Main {
min=00;
seconde=00;}
if ((seconde==30)&&(min==0)&&(heurs==0)){System.out.println("dring dring");}
if (count_alarme==0){
if ((seconde==10)&&(min==0)&&(heurs==0)){System.out.println("dring dring once");count_alarme++;}
}
System.out.println(heurs +":"+min+":"+seconde);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment