public synchronized void addObject(Object obj){
  fifo.addElement(obj);
  nbObjects++;
  notifyAll();
}

public synchronized void addObject ( Object obj ) { fifo . addElement ( obj ) ; nbObjects ++ ; notifyAll ( ) ; }
add an object in the buffer
