master
3009594 2024-09-18 16:02:01 +02:00
parent d5dd1528b7
commit e6f2dc08a9
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package Timer;
import java.util.Timer;
import java.util.TimerTask;
public class TimerKlasse extends TimerTask {
public static void main(String[] args) {
Timer timer = new Timer();
TimerTask task = new TimerKlasse();
timer.schedule(task,1000);
}
@Override
public void run() {
System.out.println("Hallo Welt!");
}
}