These are the error messages that shows up when I try to compile it:Here is my codeMain.java:16: error: unreported exception FileNotFoundException; must be caught or declared to be thrown
FileReader fr = new FileReader ("a.txt"); /*thrown FileNotFoundException;*/
^
Main.java:18: error: unreported exception IOException; must be caught or declared to be thrown
fr.close();
^import java.util.Scanner; import java.util.List; import java.io.BufferedReader; import java.io.FileReader; public class Main { public static void main (String [] args) { String configurationFile = "a.txt"; FileReader fr = new FileReader ("a.txt"); /*thrown FileNotFoundException;*/ BufferedReader br = new BufferedReader (fr); fr.close(); } }
Thanks for any input