Skip to content

Commit 435e709

Browse files
authored
Add files via upload
1 parent 52db382 commit 435e709

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scan.java

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

0 commit comments

Comments
 (0)