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 5ae6537 commit 215e25cCopy full SHA for 215e25c
app/src/main/java/hexlet/code/Cli.java
@@ -1,7 +1,11 @@
1
package hexlet.code;
2
3
+import java.util.Scanner;
4
+
5
public class Cli {
6
public static void userGreeting() {
- Engine.userGreetings();
7
+ Scanner sc = new Scanner(System.in);
8
+ String userName = sc.next();
9
+ System.out.println("Hello " + userName + "!");
10
}
11
0 commit comments