Methode run() in Printer.java erweitert.

This commit is contained in:
romanschenk37 2022-03-03 13:21:49 +01:00
parent d893734da8
commit 662dbdd021
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ public class Printer {
@Override
public void run() {
if(Thread.currentThread().getName().equals("main")){
return;
}
System.out.println(getName() + " run started...");
for (int i = 1; i < 100; i++) {
System.out.print(symbol);