Все работает но валидацию не проходит
package com.javarush.task.task18.task1824;
/*
Файлы и исключения
*/
import java.io.*;
public class Solution {
public static void main(String[] args) {
while (true) {
try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
FileInputStream fileInput1 = new FileInputStream(reader.readLine());
fileInput1.close();
} catch (FileNotFoundException e) {
System.out.println(e.getMessage().replace(" (The system cannot find the file specified)", ""));
return;
} catch (IOException e) {
e.printStackTrace();
}
}
//System.out.println("End of program");
}
}