Assignemnt #124 and Summing Three Numbers

Code

    ///Name: Daniel Tiffany-Appleton
    ///Period: 7
    ///Program Name: Summing Three Numbers
    ///File Name: SummingThreeNumbers
    ///Date Finished: 3/28/16
    
    import java.util.Scanner;
    import java.io.File;
    
    public class SummingThreeNumbers
    {
        public static void main( String[] args ) throws Exception
        {
            
            System.out.print("Reading numbers from file \"3nums.txt\".... ");
            
            Scanner fileIn = new Scanner(new File("3nums.txt"));
            
            int a = fileIn.nextInt();
            int b = fileIn.nextInt();
            int c = fileIn.nextInt();
            
            fileIn.close();
            
            System.out.println("done.");
            int sum = a + b + c;
            System.out.println(a + " + " + b + " + " + c + " = " + sum);
        
        }
    }

    

Picture of the output

Assignment 124