Assignemnt #123 and name
Code
///Name: Luke Shin
///Period: 7
///Project Name: name
///File Name: name.java
///Date: 04/01/2016
import java.io.File;
import java.util.Scanner;
public class name{
public static void main(String[] args) throws Exception{
String name;
System.out.print("Loading data......");
Scanner FileIn = new Scanner(new File("name.txt"));
name = FileIn.nextLine();
FileIn.close();
System.out.println("done.");
System.out.println("Your name is \"" + name +"\"");
}
}
Picture of the output