public String value(int arrIndex) throws Exception {
  int index=locateIndex(arrIndex);
  if (index >= 0 && (m_indices.get(index) == arrIndex)) {
    return m_values.get(index);
  }
 else {
    return "0";
  }
}

public String value ( int arrIndex ) throws Exception { int index = locateIndex ( arrIndex ) ; if ( index >= 0 && ( m_indices . get ( index ) == arrIndex ) ) { return m_values . get ( index ) ; } else { return "0" ; } }
gets the value at index from the array .
