Use stderr where appropriate.
[TD_SR.git] / TD1 / exo2 / Main.java
index f44796019d37fa664cd3e2ff426b094b85a84665..5ad851b78c8e0d16c9e96b889055c431b0c6a9ae 100644 (file)
@@ -16,6 +16,7 @@ class Main {
             }
             catch (InterruptedException e) {
                 // this part is executed when an exception (in this example InterruptedException) occurs
+                System.err.println("InterruptedException: " + e);
             }
         }
         System.out.println("Threads execution finished");