Skip to content

Commit 215e25c

Browse files
committed
upd Cli.java
1 parent 5ae6537 commit 215e25c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package hexlet.code;
22

3+
import java.util.Scanner;
4+
35
public class Cli {
46
public static void userGreeting() {
5-
Engine.userGreetings();
7+
Scanner sc = new Scanner(System.in);
8+
String userName = sc.next();
9+
System.out.println("Hello " + userName + "!");
610
}
711
}

0 commit comments

Comments
 (0)