public void applyTo(List<String> list){
  for (int i=0; i < list.size(); i++)   list.set(i,stem(list.get(i)));
}

public void applyTo ( List < String > list ) { for ( int i = 0 ; i < list . size ( ) ; i ++ ) list . set ( i , stem ( list . get ( i ) ) ) ; }
replaces each value in the list with the stemmed version of the word
