Better exception handling.
[TD_SR.git] / TD1 / exo2 / Main.java
index f44796019d37fa664cd3e2ff426b094b85a84665..e97322de725a477bc812a1caf8f702102c81bb42 100644 (file)
@@ -16,6 +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.out.println("Threads execution finished");