Не компилируется задача, не понимаю почему
package com.javarush.task.task18.task1822;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
/*
Поиск данных внутри файла
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String fileName = reader.readLine();
FileInputStream inFile = new FileInputStream(fileName);
byte[] array = Files.readAllBytes(Paths.get(fileName));
String str = new String(array, StandardCharsets.UTF_8);
String[] string = str.split(" ");
int count = 0;
for(String i: string){
count ++;
if (i == args[0]){
System.out.println(string[count] + " " + string[count+1] + " " + string[count+2] + " " + string[count+3]);
}
}
reader.close();
inFile.close();
}
}