}
catch (InterruptedException e) {
// this part is executed when an exception (in this example InterruptedException) occurs
- System.out.println("InterruptedException: " + e);
+ System.err.println("InterruptedException: " + e);
}
}
System.out.println("Threads execution finished");