123

Code

    ///Name: Joshua Bautista
    ///Period: 6
    ///Date: 6/4/16
    
    import java.io.File;
    import java.util.Scanner;
    
    public class SFI {
        
        public static void main(String []args) throws Exception {
            
            String name1, name2;
            
            Scanner fileIn = new Scanner(new File("name.txt"));
            
            name1 = fileIn.next();
            name2 = fileIn.next();
            
            System.out.println("Your name is " + name1 + " " + name2);
        }
    }
    

Picture of the output

Assignment 1