public static synchronized void removeProvider(int providerNumber){
  Provider p=providers.remove(providerNumber - 1);
  providersNames.remove(p.getName());
  setNeedRefresh();
}

public static synchronized void removeProvider ( int providerNumber ) { Provider p = providers . remove ( providerNumber - 1 ) ; providersNames . remove ( p . getName ( ) ) ; setNeedRefresh ( ) ; }
removes the provider at the specified 1 - based position .
