Assignemnt #123 name.java
Code
/// Name: Boris Kazantsev
/// Period: 6
/// Program Name: name
/// File Name: name.java
/// Date Finished: 5/29/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