diff --git a/Programmierung2/src/Timer/Timer & Timer Task.pdf b/Programmierung2/src/Timer/Timer & Timer Task.pdf new file mode 100644 index 0000000..0827878 Binary files /dev/null and b/Programmierung2/src/Timer/Timer & Timer Task.pdf differ diff --git a/Programmierung2/src/Timer/TimerKlasse.java b/Programmierung2/src/Timer/TimerKlasse.java new file mode 100644 index 0000000..a898ace --- /dev/null +++ b/Programmierung2/src/Timer/TimerKlasse.java @@ -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!"); + } + + +}