int freqCount = 0;
ArrayList<String> validVals = new ArrayList<String>(_valSet.size());
for (String val : _valSet){
int idx = valArray.indexOf(val);
if (idx>=0){
validVals.add(valArray.get(idx)); // get and format the value
freqCount+=dataCache.freqs[idx];
}
}