Unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
I'm writing a basic program to generate a a script. I'm using two methods to write to the file, so, I thought I'd user a static level file and printstream.`
static String fileName = "R1";
static File inputFile = new File(fileName+".txt");
static PrintStream write = new PrintStream(fileName+"_script.txt");
` It won't run, it asks me to catch or throw. Do I have to add a try-catch clause in the class level and is that even possible?