+ " is waiting, size: " + nbObj);
wait();
}
- catch (InterruptedException e) {}
+ catch (InterruptedException e) {
+ System.err.println("InterruptedException: " + e);
+ }
}
nbObj++;
tampon[prem] = obj;
+ " is waiting, size: " + nbObj);
wait();
}
- catch (InterruptedException e) {}
+ catch (InterruptedException e) {
+ System.err.println("InterruptedException: " + e);
+ }
}
Object outObj = null;
nbObj--;