Methode run() in Printer.java erweitert.
This commit is contained in:
parent
d893734da8
commit
662dbdd021
|
@ -24,6 +24,9 @@ public class Printer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if(Thread.currentThread().getName().equals("main")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
System.out.println(getName() + " run started...");
|
System.out.println(getName() + " run started...");
|
||||||
for (int i = 1; i < 100; i++) {
|
for (int i = 1; i < 100; i++) {
|
||||||
System.out.print(symbol);
|
System.out.print(symbol);
|
||||||
|
|
Loading…
Reference in New Issue