I ran this program on eclipse and it worked fine. Codegym is telling me that it can't run this program and that I should use IntelliJ IDEA. I don't know what this means and this is the only way I could solve the problem.
package de.codegym.task.task13.task1318;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.File;
import java.io.IOException;
/*
Eine Datei einlesen
*/
public class Solution {
public static void main(String[] args) throws IOException {
// schreib hier deinen Code
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
File path = new File(reader.readLine());
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(path)));
System.out.println(br.readLine());
br.close();
}
}