import java.io.*; import java.util.*; public class ReadMultipleFiles { public static double sumFileContents(String path) throws FileNotFoundException { Scanner sc=null; try { File file = new File (path); sc = new Scanner(file); double double1 = sc.nextDouble(); double double2 = sc.nextDouble(); return double1 + double2; } catch(NoSuchElementException ex) { System.out.println("The specified type of element was not found!"); } finally { System.out.println("Closing File!"); sc.close(); } return 0.0; } public static double sumMultipleFileContents(String []args) throws FileNotFoundException { double sum; sum = sumFileContents(args[0]); for(int i=1; i