Class IOSearcher

java.lang.Object
model.logic.server.dictionary.IOSearcher

public class IOSearcher extends Object
  • Constructor Details

    • IOSearcher

      public IOSearcher()
  • Method Details

    • search

      public static boolean search(String word, String... fileNames)
      The search function takes a word and an array of file names as parameters. It then searches each file for the given word, returning true if it is found in any of them.
      Parameters:
      word - word Specify the word that is being searched for
      fileNames - fileNames Pass in an array of strings
      Returns:
      A boolean, so it can be used in an if statement