public void addFeature(int[] fIdxArray,double[] fValueArray){
  idxList.addAll(Ints.asList(fIdxArray));
  for (int i=0; i < fIdxArray.length; i++) {
    valList.add((float)fValueArray[i]);
  }
}

public void addFeature ( int [ ] fIdxArray , double [ ] fValueArray ) { idxList . addAll ( Ints . asList ( fIdxArray ) ) ; for ( int i = 0 ; i < fIdxArray . length ; i ++ ) { valList . add ( ( float ) fValueArray [ i ] ) ; } }
add features by arrays
