Assignment #124 and Three Numbers From a File

Code

    ///Name: Tim Gibson
    ///Period: 6
    ///Project Name: Summing Three Numbers From a File
    ///File Name: Three.java
    ///Date Finished: 1/14/16
        
    import java.util.Scanner;
    import java.io.File;
    
    public class Three{
        public static void main ( String[] args ) throws Exception{
        
            int a, b, c, d;
            
            Scanner file = new Scanner( new File("3nums.txt"));
        
            a = file.nextInt();
            b = file.nextInt();
            c = file.nextInt();
        
            d = a + b + c;
        
            System.out.println(d);
        }
    }
    

Picture of the output

124