public static CharArraySet makeStopSet(String[] stopWords,boolean ignoreCase){
  CharArraySet stopSet=new CharArraySet(stopWords.length,ignoreCase);
  stopSet.addAll(Arrays.asList(stopWords));
  return stopSet;
}

public static CharArraySet makeStopSet ( String [ ] stopWords , boolean ignoreCase ) { CharArraySet stopSet = new CharArraySet ( stopWords . length , ignoreCase ) ; stopSet . addAll ( Arrays . asList ( stopWords ) ) ; return stopSet ; }
creates a stopword set from the given stopword array .
