Skip to content

Commit 0a347fb

Browse files
committed
input output. First java commit
1 parent a61b55d commit 0a347fb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.launchcode;
2+
3+
import java.util.Scanner;
4+
5+
public class InputOutput {
6+
public static void main (String[] args) {
7+
Scanner input = new Scanner(System.in);
8+
System.out.println("Hello, what is your name?");
9+
String name = input.nextLine();
10+
System.out.println("Hello " + name);
11+
}
12+
}

0 commit comments

Comments
 (0)