java.lang.Object
model.logic.server.dictionary.IOSearcher
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IOSearcher
public IOSearcher()
-
-
Method Details
-
search
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 forfileNames- fileNames Pass in an array of strings- Returns:
- A boolean, so it can be used in an if statement
-