allora fai un thread che stampa il msg
la struttura potrebbe essere
public void run() {
while (eseguibile gira) {
System.out.print(msg);
try {
this.sleep(1000*60*60*2);
} catch (InterruptedException e){}
}
}
allora fai un thread che stampa il msg
la struttura potrebbe essere
public void run() {
while (eseguibile gira) {
System.out.print(msg);
try {
this.sleep(1000*60*60*2);
} catch (InterruptedException e){}
}
}