Where is problem here?
package pl.codegym.task.task18.task1824;
/*
Pliki i wyjątki
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String file = sc.nextLine();
String file2 = sc.nextLine();
try {
FileInputStream fileInputStream = new FileInputStream(file);
fileInputStream.close();
}
catch (FileNotFoundException e){
System.out.print(file);
} catch (IOException e) {
e.printStackTrace();
}
try{
FileInputStream fis = new FileInputStream(file2);
fis.close();
} catch (FileNotFoundException e) {
System.out.print(file2);
} catch (IOException e) {
e.printStackTrace();
}
}
}