Use stderr where appropriate.
[TD_SR.git] / TD1 / exo3 / Consommateur.java
index 43c811ab6895e80e7f1cfac5dc092aeadadc04c3..06dd95db9dc89f2f1f46911bca0503b515c7d6ab 100644 (file)
@@ -27,7 +27,7 @@ public class Consommateur implements Runnable {
                                Thread.sleep(ThreadLocalRandom.current().nextInt(1001));
                        }
                        catch (InterruptedException e) {
-                               System.out.println("InterruptedException: " + e);
+                               System.err.println("InterruptedException: " + e);
                        }
                }
        }