Code example for FileNotFoundException

Methods: printStackTrace

0
		File file = new File(filename);
		try { 
			return new FileInputStream(file);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
			return null; 
		} 
		 
	} 
	 
	static public String[] loadStrings(InputStream input) {
	    try { 
	      BufferedReader reader =
	        new BufferedReader(new InputStreamReader(input, "UTF-8"));
 
	      String lines[] = new String[100];
	      int lineCount = 0;
	      String line = null;
	      while ((line = reader.readLine()) != null) {
	        if (lineCount == lines.length) {