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 a3438d7 commit 15bd177Copy full SHA for 15bd177
src/main/java/io/suhan/lotto/view/InputView.java
@@ -9,6 +9,7 @@
9
10
public class InputView {
11
private static final Scanner scanner = new Scanner(System.in);
12
+ private static final String INPUT_DELIMITER = ",";
13
14
public static int getBalance() {
15
System.out.println("구입할 금액을 입력해주세요.");
@@ -46,7 +47,7 @@ public static List<Set<Integer>> getManualNumbers(int count) {
46
47
}
48
49
private static Set<Integer> parseNumbers(String input) {
- return Arrays.stream(input.split(","))
50
+ return Arrays.stream(input.split(INPUT_DELIMITER))
51
.map(Integer::parseInt)
52
.collect(Collectors.toSet());
53
0 commit comments