///Name: Joshua Bautista ///Period: 6 ///Date: 6/4/16 import java.io.File; import java.util.Scanner; public class SN { public static void main(String[] args) throws Exception { Scanner fileIn = new Scanner(new File("3nums.txt")); int num1 = fileIn.nextInt(); int num2 = fileIn.nextInt(); int num3 = fileIn.nextInt(); int sum = num1 + num2 + num3; System.out.println(num1 + " + " + num2 + " + " + num3 + " = " + sum); } }