Assignment #124 and Summing Three Numbers

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Summing Three Numbers
    /// File Name: Summing3Numbers.java
    /// Date Finished: 3/21/2016
    
    import java.io.File;
    import java.util.Scanner;
    
    public class Summing3Numbers
    {
        public static void main (String[] args) throws Exception
        {
            int a, b, c, sum;
            
            System.out.println( "Reading numbers from file \"3nums.txt\" .... " );
            
            Scanner fileIn = new Scanner(new File("3nums.txt"));
            
            a = fileIn.nextInt();
            b = fileIn.nextInt();
            c = fileIn.nextInt();
            
            fileIn.close();
            
            sum = a + b + c;
            System.out.println( a + " + " + b + " + + " + c + " = " + sum );
        }
    }
          
    

Picture of the output

Assignment #124 Assignment #124