YourNameIs

Code

import java.io.File;
import java.util.Scanner;

public class YourNameIs {

    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("I predict that your name is... " );
        System.out.println( name );
    }
}

YourNameIs

Assignment 123