the-idiots-xgames721 / line-of-code---test-exeption- Goto Github PK
View Code? Open in Web Editor NEWtry catch { code }private List<Integer> list; private static final int SIZE = 10; PrintWriter out = null; try catch { System.out.println("Entered try statement"); out = new PrintWriter(new FileWriter("OutFile.txt")); for (int i = 0; i < SIZE; i++) { out.println("Value at: " + i + " = " + list.get(i)); } }