code: public void applyTo(String[] arr)
      {
          for(int i = 0; i < arr.length; i++)
              arr[i] = stem(arr[i]);
      }
docs: Replaces each value in the array with the stemmed version of the word
  @param arr the array to apply stemming to