I get this error when trying to run my command-line application which reads data from a given csv file. The filename is "data.csv" and should not be hardcoded. Here is my code:
Map<Integer,String[]> map= new HashMap<>();
    public Coursework(String filename) {
        try{
            // System.out.println(filename);
            String splitBy = ",";
            BufferedReader br = new BufferedReader(new FileReader(filename));
            String line;
            while((line = br.readLine()) != null) {
                // System.out.println(line);
            String[] b = line.split(splitBy);
                if(b[0].equals("id")){
                    continue;
                }
                // System.out.println("hello");
                int id = Integer.parseInt(b[0]);
                map.put(id,b);
            }
            br.close();
            // System.out.println("success");
        }
        catch(Exception e){
            System.out.println(e);
        }
    }
