public void removeProperties(String propPattern){
  int index=propPattern.indexOf("*");
  if (index == -1) {
    String value=getProperty(propPattern);
    if (value != null) {
      remove(propPattern);
    }
  }
 else {
    String startsWith=propPattern.substring(0,index);
    String endsWith;
    if (index == propPattern.length() - 1) {
      endsWith=null;
    }
 else {
      endsWith=propPattern.substring(index + 1);
    }
    @SuppressWarnings("unchecked") Vector<Object> cle=(Vector<Object>)keys.clone();
    int size=cle.size();
    for (int i=0; i < size; i+=1) {
      String name=(String)cle.elementAt(i);
      if (name.startsWith(startsWith)) {
        if (endsWith == null) {
          remove(name);
        }
 else         if (name.endsWith(endsWith)) {
          remove(name);
        }
      }
    }
  }
}

public void removeProperties ( String propPattern ) { int index = propPattern . indexOf ( "*" ) ; if ( index == - 1 ) { String value = getProperty ( propPattern ) ; if ( value != null ) { remove ( propPattern ) ; } } else { String startsWith = propPattern . substring ( 0 , index ) ; String endsWith ; if ( index == propPattern . length ( ) - 1 ) { endsWith = null ; } else { endsWith = propPattern . substring ( index + 1 ) ; } @ SuppressWarnings ( "unchecked" ) Vector < Object > cle = ( Vector < Object > ) keys . clone ( ) ; int size = cle . size ( ) ; for ( int i = 0 ; i < size ; i += 1 ) { String name = ( String ) cle . elementAt ( i ) ; if ( name . startsWith ( startsWith ) ) { if ( endsWith == null ) { remove ( name ) ; } else if ( name . endsWith ( endsWith ) ) { remove ( name ) ; } } } } }
remove the set of properties that match the specified pattern . see getproperties ( string ) for more info about the pattern .
