Skip to content

Commit 976f618

Browse files
committed
Add day1 lab.
1 parent ce80493 commit 976f618

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.codenext.day1;
2+
3+
import java.util.Scanner;
4+
5+
public class MyFirstJavaProgram {
6+
7+
public static void main(String[] args) {
8+
9+
System.out.print("Please enter your name:");
10+
Scanner scanner = new Scanner(System.in);
11+
12+
String name = scanner.nextLine();
13+
14+
System.out.println("Hello:"+name+"!");
15+
}
16+
}

0 commit comments

Comments
 (0)