Skip to content

Commit c0609b8

Browse files
author
Aleksandr Pronichev
committed
fix
1 parent 139d75a commit c0609b8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

app/src/main/java/hexlet/code/Engine.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,4 @@ public static void game(String rules, String[][] questionsAndAnswers) {
3030
}
3131
System.out.println("Congratulations, " + userName + "!");
3232
}
33-
34-
public static String greeting() {
35-
Scanner scanner = new Scanner(System.in);
36-
System.out.println("Welcome to the Brain Games!");
37-
System.out.print("May I have your name? ");
38-
String userName = scanner.next();
39-
System.out.println("Hello, " + userName + "!");
40-
return userName;
41-
}
42-
}
33+
}

0 commit comments

Comments
 (0)