Use stderr where appropriate.
[TD_SR.git] / TD1 / exo2 / Main.java
index e97322de725a477bc812a1caf8f702102c81bb42..5ad851b78c8e0d16c9e96b889055c431b0c6a9ae 100644 (file)
@@ -16,7 +16,7 @@ class Main {
             }
             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");