Class WordFilter

java.lang.Object
edu.odu.cs.cs350.WordFilter

public class WordFilter extends Object
Class to test a String against a list of common words.
  • Constructor Details

    • WordFilter

      public WordFilter()
  • Method Details

    • contains

      public static boolean contains(String word)
      Check if a word is in the stop word list.
      Parameters:
      word - the word to check
      Returns:
      true if the word is a stop word, false otherwise