Assignment #123

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: SimpleFileInput
    ///File Name: SimpleFileInput.java
    ///Date: 5/12/16
    
    
    
    import java.io.File;
    import java.util.Scanner;
    
    public class SimpleFileInput
    {
        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( name1 + " " + name2);
        }
    }

            


    

Picture of the output

Assignment 123