public String findValue(String k){
  if (k == null) {
    for (int i=nkeys; --i >= 0; )     if (keys[i] == null)     return values[i];
  }
 else   for (int i=nkeys; --i >= 0; ) {
    if (k.equalsIgnoreCase(keys[i]))     return values[i];
  }
  return null;
}

public String findValue ( String k ) { if ( k == null ) { for ( int i = nkeys ; -- i >= 0 ; ) if ( keys [ i ] == null ) return values [ i ] ; } else for ( int i = nkeys ; -- i >= 0 ; ) { if ( k . equalsIgnoreCase ( keys [ i ] ) ) return values [ i ] ; } return null ; }
find the value that corresponds to this key . it finds only the first occurrence of the key .
