Here is what I have:
public void start(){//reads the input files and stores into hashmap
System.out.println("START!!!");
startCalled = true;
try {
fr = new FileReader(getInfileName());
br = new BufferedReader(fr);
Insert(br);
br.close();//error stating I need a separate exception
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
*Update before even posting* Is it because I am trying to catch something specific in line 11? If I made my catch into
catch (Exception e)instead, would that eliminate the error?
anndddd that fixed my error

New Topic/Question
Reply


MultiQuote




|