Assignment #123

Code

/// Name: Jonathan Stine
/// Period: 5
/// Program Name: Simple File Input
/// File Name: SimpleFileInput.java
/// Dtae Finished: 4/19/2016
    
    import java.io.File;
    import java.util.Scanner;
    
    public class SimpleFileInput {
        
        public static void main(String[] args)throws Exception {
            
            String myName;
            
            Scanner name = new Scanner(new File("SimpleFileInput.txt"));
            myName = name.nextLine();
            
            name.close();
            
            System.out.println( "Your name is: " + myName );
            
        }
    }

    
 
    

Code Output