Use stderr where appropriate.
[TD_SR.git] / TD1 / exo3 / BufferCirc.java
index 486951502caffd1d4925291dfa37eb1d74372f74..3c7a65efc1d554ee7c1415a4414916610d11b293 100644 (file)
@@ -37,7 +37,7 @@ public class BufferCirc {
                                wait();
                        }
                        catch (InterruptedException e) {
-                               System.out.println("InterruptedException: " + e);
+                               System.err.println("InterruptedException: " + e);
                        }
                }
                nbObj++;
@@ -56,7 +56,7 @@ public class BufferCirc {
                                wait();
                        }
                        catch (InterruptedException e) {
-                               System.out.println("InterruptedException: " + e);
+                               System.err.println("InterruptedException: " + e);
                        }
                }
                Object outObj = null;