VL-Programmieren/VL14/Aufgabe01/Aufgabe01.java

19 lines
417 B
Java
Raw Normal View History

2024-05-30 09:31:58 +00:00
package VL14.Aufgabe01;
/**
* Vorlesung 14 / Aufgabe 1
*
* @author Sebastian Brosch
*/
class Aufgabe01 {
public static void main(String[] args) {
Counter counterUp = new Counter(1, 100);
Counter counterDown = new Counter(-10);
2024-05-30 09:31:58 +00:00
Thread threadCounterUp = new Thread(counterUp);
Thread threadCounterDown = new Thread(counterDown);
threadCounterUp.start();
threadCounterDown.start();
}
}