@@ -22,8 +22,8 @@ public static void main(String[] args) {
22
22
final int lottoCount = money .getLottoCount ();
23
23
System .out .println (String .format ("\n %d개를 구매했습니다." , lottoCount ));
24
24
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 );
27
27
28
28
System .out .println ("\n 당첨 번호를 입력해 주세요." );
29
29
final Lotto winLotto = new Lotto (InputView .requestWinNumbers ());
@@ -32,7 +32,7 @@ public static void main(String[] args) {
32
32
int bonusBall = InputView .requestInteger ();
33
33
34
34
final WinNumbers winNumbers = new WinNumbers (winLotto , bonusBall );
35
- final LottoRanks lottoRanks = getLottoRanks (autoLottos , winNumbers );
35
+ final LottoRanks lottoRanks = getLottoRanks (lottos , winNumbers );
36
36
37
37
System .out .println ("당첨 통계\n ---" );
38
38
System .out .println (lottoRanks );
@@ -45,8 +45,8 @@ private static List<Lotto> getAutoLottos(int lottoCount) {
45
45
.collect (Collectors .toList ());
46
46
}
47
47
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 ()
50
50
.map (lotto -> LottoRank .calculateRank (winNumbers , lotto ))
51
51
.collect (Collectors .toList ());
52
52
0 commit comments