so I am currently working on a java project in intellij and in order to run the program that I have coded the java main has to access information from a csv file called "Surnames_2010Census.csv" . However, whenever I got to run the program it says that the file can not be found even though it is clearly there. My question is what do I have to do in order for intellij to find said file and run my code. Below I have posted the code for my main.java file.
package edu.cscc;
public class Main {
private final static String CENSUSDATAFNAME = "Surnames_2010Census.csv";
public static void main(String[] args) {
Surname[] namelist = Census.loadCensusData(CENSUSDATAFNAME);
if (namelist != null) {
System.out.println("Rank\tName");
for (Surname name : namelist) {
System.out.println(name.getRank() + "\t\t" + name.getName());
}
}
}
}