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 a111417 commit 1d33078Copy full SHA for 1d33078
app/src/main/java/hexlet/code/Cli.java
@@ -1,10 +1,12 @@
1
package hexlet.code;
2
3
+import java.util.Scanner;
4
+
5
public class Cli {
6
public static void greeting() {
7
System.out.println("Welcome to the Brain Games!");
8
System.out.println("May I have your name?");
- String name = new java.util.Scanner(System.in).next();
9
+ String name = new Scanner(System.in).next();
10
System.out.println("Hello, " + name + "!");
11
}
12
0 commit comments