Ciao

ho creato la mia applicazione Alarm non ho errori a tempo di compilazione ne a run time.
Il problema è che quando chiamo il metodo AlrmExecute funzional per la prima volta (quando clicco sul bottone Run di Eclipse9 e poi sembra bloccato e non mi mostra + neinete nella console , qualcuno potrebbe darmi una mano?
Codice PHP:
import java.util.Timer ;

public class 
Alarm {
    private 
int s;
    private 
int h;
    private 
int m;
    private 
int[]timeNow;
    private 
Timer timer;
    private 
AlarmTask almTsk;
    
public 
Alarm (int hourint min) { //hour, min ->alarm time set by the user
    
h=hour;
    
m=min;
    
s=60;
    
timer=new Timer();
    
almTsk=new AlarmTask();
    
timeNow=new int[2];
}
public 
void AlarmExecute(){
    try{
    
timer.scheduleAtFixedRate(almTsk0s*1000); //sample at 30s
    
timeNow=almTsk.TimeNow();
    
System.out.print(timeNow[0]); //dopo che ho fatto run sulla console mi compare una sola
    
System.out.print(timeNow[1]); //volta l'ora, non dovrebbe comparire ogni 30s? 
    
if(timeNow[0]==&& timeNow[1]==m){
        
System.out.print("Alarm");
        
StopAlarm();
    }
}
catch (
IllegalArgumentException e1){
    
System.out.println("delay is negative");
}
catch (
IllegalStateException e2){
    
System.out.println("task was already scheduled or cancelled, timer was cancelled");
}
}
public 
void StopAlarm (){
    
timer.cancel();
}

}


import java.util.Calendar;
import java.util.TimerTask;

public class 
AlarmTask extends TimerTask{
    private 
int[] timeNow;
    private 
Calendar cal;
    
public 
AlarmTask(){
    
timeNow=new int[2];
    
cal=Calendar.getInstance();
    
//System.out.print(cal.get(Calendar.HOUR_OF_DAY));
}
    
public 
void run(){ //sample of time
        
timeNow[0]=getHour();
        
timeNow[1]=getMinute();
    }
public 
int getHour(){
        return 
cal.get(Calendar.HOUR_OF_DAY);
        
}
public 
int getMinute(){
        return 
cal.get(Calendar.MINUTE);
}    

public 
int[]TimeNow(){
    return 
timeNow;
}
    
    
}

ublic class Test {

    
/**
     * @param args
     */
    
public static void main(String[] args) {
        
// TODO Auto-generated method stub
     
Alarm a;
     
a=new Alarm(23,20);
     
a.AlarmExecute();
     
}