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 4d13897 commit b72887aCopy full SHA for b72887a
app/src/main/java/hexlet/code/Cli.java
@@ -0,0 +1,10 @@
1
+package hexlet.code;
2
+import java.util.Scanner;
3
+
4
+public class Cli {
5
+ public static void startGame() {
6
+ Scanner sc = new Scanner(System.in);
7
+ System.out.print("May I have your name? ");
8
+ System.out.println("Hello, " + sc.nextLine() + "!");
9
+ }
10
+}
0 commit comments