Skip to content

Commit ac7d5b3

Browse files
committed
upd Cli.java
1 parent 2848b60 commit ac7d5b3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
package hexlet.code;
22

3-
import java.util.Scanner;
4-
53
public class Cli {
64
public static void userGreeting() {
7-
Scanner sc = new Scanner(System.in);
8-
String userName = sc.next();
9-
System.out.println("Hello " + userName + "!");
10-
System.out.println("Welcome to the Brain Games!\nMay I have your name?");
11-
System.out.println("Hello " + userName + "!");
5+
Engine.userGreetings();
126
}
137
}

0 commit comments

Comments
 (0)