Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) {
int max = providers.size (); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName().equals(name)) {
    public static void removeProvider(String name) {        SecurityManager sm = System.getSecurityManager();        if (sm != null) sm.checkSecurityAccess("removeProvider." + name);        Provider p = null;        int max = providers.size();        for (int i = 0; i < max; i++) {            if (((Provider) providers.elementAt(i)).getName() == name) {                providers.remove(i);                break;            }        }    }