Skip to content

Commit 8307281

Browse files
committed
refactor: 변수명 변경
1 parent a308695 commit 8307281

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/lotto/Application.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static void main(String[] args) {
2222
final int lottoCount = money.getLottoCount();
2323
System.out.println(String.format("\n%d개를 구매했습니다.", lottoCount));
2424

25-
final List<Lotto> autoLottos = getAutoLottos(lottoCount);
26-
autoLottos.forEach(System.out::println);
25+
final List<Lotto> lottos = getAutoLottos(lottoCount);
26+
lottos.forEach(System.out::println);
2727

2828
System.out.println("\n당첨 번호를 입력해 주세요.");
2929
final Lotto winLotto = new Lotto(InputView.requestWinNumbers());
@@ -32,7 +32,7 @@ public static void main(String[] args) {
3232
int bonusBall = InputView.requestInteger();
3333

3434
final WinNumbers winNumbers = new WinNumbers(winLotto, bonusBall);
35-
final LottoRanks lottoRanks = getLottoRanks(autoLottos, winNumbers);
35+
final LottoRanks lottoRanks = getLottoRanks(lottos, winNumbers);
3636

3737
System.out.println("당첨 통계\n---");
3838
System.out.println(lottoRanks);
@@ -45,8 +45,8 @@ private static List<Lotto> getAutoLottos(int lottoCount) {
4545
.collect(Collectors.toList());
4646
}
4747

48-
private static LottoRanks getLottoRanks(List<Lotto> autoLottos, WinNumbers winNumbers) {
49-
final List<LottoRank> ranks = autoLottos.stream()
48+
private static LottoRanks getLottoRanks(List<Lotto> lottos, WinNumbers winNumbers) {
49+
final List<LottoRank> ranks = lottos.stream()
5050
.map(lotto -> LottoRank.calculateRank(winNumbers, lotto))
5151
.collect(Collectors.toList());
5252

0 commit comments

Comments
 (0)