public class BoundedQueue<E>{ public synchronized void add(E newValue) { . . . } public synchronized E remove() { . . . } . . .}