public boolean isEmpty(){
synchronized (contents) {
    return (contents.isEmpty());
  }
}

public boolean isEmpty ( ) { synchronized ( contents ) { return ( contents . isEmpty ( ) ) ; } }
return whether the queue is currently empty .
