public ServerSocketChannel next(){
  SelectionKey key=iterator.next();
  if (key.isValid() && key.isAcceptable()) {
    return (ServerSocketChannel)key.channel();
  }
  return null;
}

public ServerSocketChannel next ( ) { SelectionKey key = iterator . next ( ) ; if ( key . isValid ( ) && key . isAcceptable ( ) ) { return ( ServerSocketChannel ) key . channel ( ) ; } return null ; }
get the next socketchannel in the operator we have built from the selected - key et for this selector .
