java.lang.Object
test.IOSearcher
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IOSearcher
public IOSearcher()
-
-
Method Details
-
search
The search function takes a String word and an array of Strings fileNames as parameters. It returns true if the word is found in any of the files, false otherwise.- Parameters:
word- String -Search for the word in the filefileNames- An array of String -Pass a variable number of arguments to the function- Returns:
- A boolean
- Throws:
Exception
-