Assignemnt #123 and SimpleInput

Code

/// name: Leila Ordukhani
/// period: 6
/// program name: One Hundred and Four Program
/// file name: SimpleInput.java
/// date finished: 5/23/16

    import java.io.File;
    import java.util.Scanner;
    
    public class SimpleInput {
    
        public static void main(String[] args) throws Exception {
        
            String name;
            
            Scanner fileIn = new Scanner(new File("name.txt"));
            
            name = fileIn.nextLine();
            
            fileIn.close();
            
            System.out.println("Your name is " + name + ".");
        }
    }
  

Picture of the output

Assignment 123