We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2848b60 commit ac7d5b3Copy full SHA for ac7d5b3
app/src/main/java/hexlet/code/Cli.java
@@ -1,13 +1,7 @@
1
package hexlet.code;
2
3
-import java.util.Scanner;
4
-
5
public class Cli {
6
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
+ Engine.userGreetings();
12
}
13
0 commit comments