= Project #123

Assignemnt #123

Code

//colin hinton
//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

Assignment 1