If you look at the error, it relates to line 25 and it is an unhandled exception.
You need either a try/catch block around it or else add a throw to the method which will just need to be caught someplace else.
PrintWriter outFile;
try {
outFile = new PrintWriter("C:\\Users\\Philip\\Desktop\\JavaProgramming\\GUI Array\\program.txt");
} catch (FileNotFoundException e1) {
//handle this exception somehow
}