@BerylHoffman/

JavaIOExample

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    System.out.print("Please Enter your name: ");
    Scanner scan = new Scanner(System.in);
    String name = scan.nextLine();
    System.out.println("Hello " + name);
    scan.close();
  }
}