public void deleteMetadataEntry(int i){
  if (i < metadata.size()) {
    metadata.remove(i);
  }
}

public void deleteMetadataEntry ( int i ) { if ( i < metadata . size ( ) ) { metadata . remove ( i ) ; } }
used to delete a metadata entry
