19 lines
417 B
Java
19 lines
417 B
Java
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);
|
|
Thread threadCounterUp = new Thread(counterUp);
|
|
Thread threadCounterDown = new Thread(counterDown);
|
|
threadCounterUp.start();
|
|
threadCounterDown.start();
|
|
}
|
|
}
|