public String[] list() throws RemoteException {
  String[] names;
synchronized (bindings) {
    int i=bindings.size();
    names=new String[i];
    Enumeration<String> enum_=bindings.keys();
    while ((--i) >= 0)     names[i]=enum_.nextElement();
  }
  return names;
}

public String [ ] list ( ) throws RemoteException { String [ ] names ; synchronized ( bindings ) { int i = bindings . size ( ) ; names = new String [ i ] ; Enumeration < String > enum_ = bindings . keys ( ) ; while ( ( -- i ) >= 0 ) names [ i ] = enum_ . nextElement ( ) ; } return names ; }
returns an enumeration of the names in the registry .
