I am trying to find a phrase or a string in file and count the number of occurrences of that string: private static HashMap<String, Integer> bruteForceSearch(      String stringToLookFor, List<File> list) throws IOException {    HashMap<String, Integer> result = new HashMap<String, Integer>();    for (File file : list) {      String fileName = file.getName();      // System.out.println(fileName);      FileInputStream fstream = new FileInputStream(file);      BufferedReader in = new BufferedReader(new InputStreamReader(fstream));      String readLine = ;      int count = 0;      while ((readLine = in.readLine()) != null) {        String[] words = readLine.split( );        for (String text : words) {          if (text.equalsIgnoreCase(stringToLookFor)) {            count++;          }        }      }      if (count != 0) {        result.put(fileName, count);      }      in.close();    }    return result;  }Are there any improvements to do in my code? Please let me know.
Counting the occurrences of a string in each file
java;strings;file;search