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) {
|
2024-05-30 09:37:17 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|