Assignment #124 and Summing Three Numbers

Code

///John Mulligan
///period 5
///Program Name: SummingThreeNumbers 
///File Name: SummingThreeNumbers .java

    import java.io.File;
    import java.util.Scanner;
    
    public class SummingThreeNumbers 
    
    
    
    {
    
        public static void main(String[] args) throws Exception {
            
            int a, b, c;
            
            Scanner fileIn = new Scanner(new File("3nums.txt"));
            
            a = fileIn.nextInt();
           
            b = fileIn.nextInt();
           
            c = fileIn.nextInt();
            
            fileIn.close();
            
            int sum = a + b + c;
          
            System.out.println("\n" + a + " + " + b + " + " + c + " = " + sum);
            System.out.println();
        }
    }