Use stderr where appropriate.
[TD_SR.git] / TD1 / exo3 / Producteur.java
index f3cc123ac18ba582eba727a017023a0e29b176ee..0ad13c3e2490ffc08eee619011e8809b68d2b02b 100644 (file)
@@ -29,7 +29,7 @@ public class Producteur implements Runnable {
                                Thread.sleep(ThreadLocalRandom.current().nextInt(101));
                        }
                        catch (InterruptedException e) {
-                               System.out.println("InterruptedException: " + e);
+                               System.err.println("InterruptedException: " + e);
                        }
                }
        }