Assignment 123

Code

//Matthew Hughs
//5th period
//imput.java
//5/12/2016

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

Picture of the output

Countingfor