public void remove(String key){
  Iterator<Pair<String,ArrayList<String>>> it=store.iterator();
  while (it.hasNext()) {
    String thisKey=it.next().first;
    if (key.equals(thisKey)) {
      it.remove();
      break;
    }
  }
}

public void remove ( String key ) { Iterator < Pair < String , ArrayList < String > > > it = store . iterator ( ) ; while ( it . hasNext ( ) ) { String thisKey = it . next ( ) . first ; if ( key . equals ( thisKey ) ) { it . remove ( ) ; break ; } } }
remove a given key from the file .
