public void accept(Connection conn){
synchronized (queue) {
    queue.add(conn);
    queue.notify();
  }
}

public void accept ( Connection conn ) { synchronized ( queue ) { queue . add ( conn ) ; queue . notify ( ) ; } }
add connection to queue of connections to be accepted .
