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 ad2f2e4 commit 2befb57Copy full SHA for 2befb57
baseball_game/src/main/java/Game/Input.java
@@ -6,14 +6,12 @@ public class Input {
6
private static final Scanner scanner = new Scanner(System.in);
7
private static int inputNumber;
8
9
- public static int getInputNumber() {
+ public int getInputNumber() {
10
return inputNumber;
11
}
12
13
public static void getInput() {
14
- String result = "";
15
- int inputN = validInput(scanner.next());
16
- inputNumber = inputN;
+ int inputNumber = validInput(scanner.next());
17
18
19
public static int validInput(String in) {
0 commit comments