Skip to content

๐Ÿ”€ [hanse & sally] ๋กœ๋˜ 2๋‹จ๊ณ„ - ๋ณด๋„ˆ์Šค ๋ฒˆํ˜ธ ์ถ”๊ฐ€#45

Open
rkolx wants to merge 15 commits intocodesquad-members-2022:sally-kshfrom
rkolx:step2
Open

๐Ÿ”€ [hanse & sally] ๋กœ๋˜ 2๋‹จ๊ณ„ - ๋ณด๋„ˆ์Šค ๋ฒˆํ˜ธ ์ถ”๊ฐ€#45
rkolx wants to merge 15 commits intocodesquad-members-2022:sally-kshfrom
rkolx:step2

Conversation

@rkolx
Copy link
Member

@rkolx rkolx commented Feb 25, 2022

java-lotto

๋งˆ์Šคํ„ฐ์ฆˆ ๋ฉค๋ฒ„์Šค 2022 ๋กœ๋˜ ๊ฒŒ์ž„ ํ”„๋กœ์ ํŠธ

  • pair programming (hanse, sally)

๊ธฐ๋Šฅ์š”๊ตฌ์‚ฌํ•ญ

  • 2๋“ฑ์„ ์œ„ํ•ด ์ถ”๊ฐ€ ๋ฒˆํ˜ธ๋ฅผ ํ•˜๋‚˜ ๋” ์ถ”์ฒจํ•œ๋‹ค. ๋‹น์ฒจ ํ†ต๊ณ„์— 2๋“ฑ๋„ ์ถ”๊ฐ€ํ•ด์•ผ ํ•œ๋‹ค.

ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์š”๊ตฌ์‚ฌํ•ญ

  • enum์„ ์ ์šฉํ•ด ํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ๊ตฌํ˜„ํ•œ๋‹ค.

์ถœ๋ ฅ ๊ฒฐ๊ณผ

rkolx and others added 13 commits February 24, 2022 22:42
- ๋ณด๋„ˆ์Šค๋ณผ ์ž…๋ ฅ ์ถ”๊ฐ€
- WinningNumber ํด๋ž˜์Šค ์ƒ์„ฑ
- Winnings ํด๋ž˜์Šค์—์„œ WinningNumberCouter๋กœ ํด๋ž˜์Šค ๋ช… ์ˆ˜์ •
- Lottos ํด๋ž˜์Šค : ๋ณด๋„ˆ์Šค ๋ฒˆํ˜ธ ์ถ”๊ฐ€ํ•˜์—ฌ ๊ฐœ์ˆ˜ ์„ธ๊ธฐ
- Main.class -> LottoPlay
- Lottos getNumberOfWinningAboveThree() -> Ranking ์—๊ฒŒ ์ „๋‹ฌ
- Ranking
  - this.ranking ๋ฐ˜ํ™˜์„ ์ˆ˜์ •ํ•˜๊ฒŒ ์œ„ํ•ด String์œผ๋กœ์˜ ๋ณ€๊ฒฝ๋กœ์ง์„ ์˜ฎ๊น€
- BasicWinningNumbers
  - ๊ธฐ์กด์˜ ๋กœ๋˜ ๊ฒฐ๊ณผ ์ถœ๋ ฅ ๊ธฐ๋Šฅ
- AddedWinningNumbers
  - ๊ธฐ์กด์˜ ๋กœ๋˜ ๊ฒฐ๊ณผ์— ์ถ”๊ฐ€๋˜๋Š” ๋ณด๋„ˆ์Šค ์ˆซ์ž๋“ค ์ „๋‹ฌ
  - BonusWinningNumbers ๊ตฌํ˜„์ฒด
- UserLotto
 - ์ž…๋ ฅ๋ฐ›์€ ์‚ฌ์šฉ์ž ์š”์ฒญ์„ ํ†ตํ•ด ๋กœ๋˜ ์ƒ์„ฑ, ๋ณด๊ด€, ๋‹น์ฒจ ๊ฒฐ๊ณผ์™€์˜ ๋งค์นญ ๊ธฐ๋Šฅ์„ ๊ฐ€์ง„๋‹ค.
- ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์„ ๋‚˜๋ˆ„๋ฉด์„œ ์‚ฌ์šฉ์ž๊ฐ€ ๊ฐ€์ง„ ํ‹ฐ์ผ“ ์ •๋ณด์™€ ๋‹น์ฒจ ์ •๋ณด๋ฅผ ํŒจํ‚ค์ง€๋กœ ๋ถ„๋ฆฌ
- Lottos ํด๋ž˜์Šค : getTotalLottos()์—์„œ ๊ตฌ๋งคํ•œ ๊ฐœ์ˆ˜๋งŒํผ ๋กœ๋˜ ๋ฒˆํ˜ธ ๋‹ด๋Š” getPurchassedLotoos() ์ถ”๊ฐ€ ๋ถ„๋ฆฌ
- Lottos ํด๋ž˜์Šค : getTotalLottos() ๋‚ด ๋กœ๋˜ ๋ฒˆํ˜ธ ๋‹ด๋Š” ๋ถ€๋ถ„ toLottos() ์ƒ์„ฑํ•˜์—ฌ ๋ถ„๋ฆฌ
- LottoPlayํด๋ž˜์Šค๋ช…์—์„œ LottoApplicationํด๋ž˜์Šค๋ช…์œผ๋กœ ๋ณ€๊ฒฝ
@rkolx rkolx added the review-BE Improvements or additions to documentation label Feb 25, 2022
@wheejuni wheejuni self-requested a review February 26, 2022 00:40
@wheejuni wheejuni self-assigned this Feb 26, 2022
Copy link

@wheejuni wheejuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜๊ณ  ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ’ฏ
์ฝ”๋ฉ˜ํŠธ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”~

Comment on lines +13 to +15
private static LottoMachine lottoMachine = new LottoMachine();
private static Lottos lottos = new Lottos();
private static UserLotto userLotto = new UserLotto(lottoMachine, lottos);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๋ถ€๋ถ„์„ ์–ด๋–ป๊ฒŒ ๊ฐœ์„ ํ•˜๋ฉด ์ข‹์„์ง€ 3๋‹จ๊ณ„์—์„œ ๊ณ ๋ฏผํ•ด์ฃผ์„ธ์š”~

ํžŒํŠธ: LottoGame ๋ถ„๋ฆฌ, ์˜์กด์„ฑ ์ฃผ์ž…

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์œผ-์Œ.... ์–ด๋ ต์ง€๋งŒ, ์•Œ ๊ฒƒ๋„ ๊ฐ™๊ณ ... @_@๊ณ ๋ฏผ ํ•ด์„œ ๊ฐœ์„ ๋˜๋„๋ก ๋…ธ๋ ฅํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
3๋‹จ๊ณ„ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์˜คํ† ,์ˆ˜๋™๋งŒ di๋กœ ํ–ˆ๋Š”๋ฐ๋„, ๋ณด์ง€ ๋ชปํ•œ ๋ถ€๋ถ„์ด ์žˆ๋Š” ๊ฑฐ ๊ฐ™์•„์š”.
์•Œ๋ ค์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.๐Ÿฅ‡

public static void main(String[] args) {
PurchasedLotto purchasedLotto = purchaseLotto();

List<List<Integer>> totalLottos = userLotto.getTickets(purchasedLotto);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List<List<T>> ์™€ 2์ฐจ์› ๋ฐฐ์—ด๊ณผ์˜ ์ฐจ์ด์ ์ด ๋ฌด์—‡์ผ๊นŒ์š”?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2์ฐจ์› ๋ฐฐ์—ด์˜ ์ฐจ์ด์ ๊ณผ ๋ฆฌ์ŠคํŠธ์˜ ์žฅ์ ์„ ์•Œ๊ณ  ๋ฆฌ์ŠคํŠธ๋ฅผ ์„ ํƒํ•ด์„œ ์‚ฌ์šฉํ•œ๊ฑด์ง€์— ๋Œ€ํ•œ๊ฑธ ๋ง์”€ํ•˜์‹œ๋Š” ๊ฑธ๊นŒ์š”? ์–ด๋–ค ์˜๋ฏธ์ธ์ง€ ๋ชฐ๋ผ ์—ฌ์ญ™๋‹ˆ๋‹คใ… ใ… 

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋„ค ์ฐจ์ด์ ์ด ์—†๋‹ค๋Š”๊ฒŒ ์ •๋‹ต์ด์—ˆ์–ด์š”. ใ…Žใ…Ž
๋ฆฌํŒฉํ† ๋ง์„ ๋ถ€ํƒ๋“œ๋ฆฐ๋‹ค๋Š” ์˜๋ฏธ์ด๊ธฐ๋„ ํ–ˆ๊ตฌ์š”~

Comment on lines 23 to 26
List<Integer> inputValueOfWinningNumbers = inputWinningNumbers();
int bonusNumber = getBonusNumber();

Ranking ranking = userLotto.getRankingFromWinningNumbers(inputValueOfWinningNumbers, bonusNumber);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputValueOfWinningNumbers, bonusNumber ๋Š” ๋‹จ์ˆœํžˆ ํŒŒ๋ผ๋ฉ”ํ„ฐ๋กœ ์ „๋‹ฌ๋˜๊ธฐ ์œ„ํ•œ ๋ณ€์ˆ˜๋“ค์ด๊ตฐ์š”.
๊ทธ๋ ‡๋‹ค๋ฉด ๋ณ„๋„์˜ ์„ ์–ธ ์—†์ด ์•„๋ž˜์™€ ๊ฐ™์ด ํ•ด๋„ ๋˜์ง€ ์•Š์„๊นŒ ์‹ถ๋„ค์š”.

Ranking ranking = userLotto.getRankingFromWinningNumbers(inputWinningNumbers(), getBonusNumber());

Copy link

@sally-ksh sally-ksh Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ฐ์ฒดํƒ€์ž… ๋ฐ˜ํ™˜์˜ ๊ฒฝ์šฐ๋Š” ๋ช…์‹œ์ ์œผ๋กœ ์ ์–ด์ฃผ๋Š” ๊ฒŒ ์•ˆ์ •์„ฑ ๋“ฑ์—์„œ ์ข‹๋‹ค๊ณ  ์•Œ๊ณ  ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
์‚ฌ์‹ค...์œ„ ๊ฒฝ์šฐ์ฒ˜๋Ÿผ ๋™์ผํ•œ ์˜๋ฏธ๊ฐ€ ๋‹ด๊ธด ๋ฉ”์„œ๋“œ๋ช…ํ•˜๊ณ  ์ฐธ์กฐ๋ณ€์ˆ˜๋ช… ๋‘ ๋ฒˆ ๊ณ ๋ คํ•˜๋Š”๊ฒŒ ์ •๋ง ์˜๋ฏธ ์—†๊ธฐ๋„ ํ–ˆ์—ˆ์Šต๋‹ˆ๋‹ค.

ํ˜น์‹œ ๋ฌธ์ œ๋˜๊ฑฐ๋‚˜ ์•ˆ ์ข‹์€ ์ด์œ ๊ฐ€ ์žˆ๋‹ค๋ฉด ๊ตฌ์ฒด์ ์œผ๋กœ ์•Œ๊ณ  ์‹ถ์–ด์„œ์š”.
์•Œ๋ ค์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

}

public int numberOfWinnings(List<Integer> winningNumbers){
public int countNumberOfWinnings(List<Integer> winningNumbers){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream ์‚ฌ์šฉํ•ด์„œ ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ์„ ๊ฑฐ ๊ฐ™๋„ค์š”

Comment on lines 42 to 45
if (sixNumbers.contains(bonusNumber)){
return true;
}
return false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋ ‡๊ฒŒ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ์ง€ ์•Š์„๊นŒ์š”

Suggested change
if (sixNumbers.contains(bonusNumber)){
return true;
}
return false;
return sixNumbers.contains(bonusNumber));

@@ -1,4 +1,4 @@
package domains;
package domains.users;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํŒจํ‚ค์ง€๋ช…์— ๋ณต์ˆ˜ํ˜•์„ ์ž˜ ์“ฐ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Copy link

@sally-ksh sally-ksh Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ˜„์žฌ๋Š” ํ•œ๋ช…์˜ ์ž…๋ ฅ๋งŒ ๋ฐ›์•„์„œ ๋ณต์ˆ˜ํ˜• ์“ฐ์ง€ ์•Š๋Š”๊ฒŒ ๋งž๊ณ , ์Šคํ”„๋ง์˜ ๊ฒฝ์šฐ์—๋Š” ์—ฌ๋Ÿฌ ์‚ฌ์šฉ์ž ์ •๋ณด๋ฅผ ๋‹ค๋ฃจ๋‹ˆ ๋ณต์ˆ˜ํ˜•์„ ์“ฐ๋Š”๊ฒŒ ๋งž๋‹ค๊ณ  ์ƒ๊ฐํ•˜๋ฉด ๋ ๊นŒ์š”?
์Šคํ”„๋ง ๊ฐ•์˜์—์„œ ํŒจํ‚ค์ง€๋ช…์— ๋ณต์ˆ˜ํ˜•์œผ๋กœ ์“ฐ๋ผ๊ณ  ํ•˜์…จ์–ด์„œ,.. ์ข€ ๋” ๊ตฌ์ฒด์ ์œผ๋กœ ์•Œ๊ณ  ์ •๋ฆฌํ•˜๊ณ ์ž ์งˆ๋ฌธ ํ•ฉ๋‹ˆ๋‹ค.
๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ผ๋‹จ domains ๊นŒ์ง€๋Š” ์ž˜ ์ดํ•ด๊ฐ€ ๋˜์—ˆ๊ตฌ์š”,
users ๊ฐ€ ๋ณต์ˆ˜ํ˜•์ด ๋œ ์ด์œ ๋ฅผ ์•Œ๊ณ  ์‹ถ์—ˆ์–ด์š”. ๋ณต์ˆ˜ํ˜•์ด ๋˜๋ฉด ์•ˆ๋œ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๊ตฌ์š”.
user ๋ผ๋Š” ์ผ๋ฐ˜์ ์ธ ๊ฐœ๋…, ํ˜น์€ ํ”„๋กœ๊ทธ๋žจ์  ์š”๊ตฌ์‚ฌํ•ญ์„ ๊ตฌํ˜„ํ•œ ์ฝ”๋“œ๋“ค์˜ ์ง‘ํ•ฉ์ด๋ผ users ๋ผ๋Š” ๊ฑด ์ข€ ์–ด์ƒ‰ํ•˜๋‹ค๊ณ  ๋ดค๊ฑฐ๋“ ์š”. ์šฐ๋ฆฌ๊ฐ€ ์ถ”์ƒํ™”ํ•ด์•ผ ํ•  ๊ฐœ๋… ์ž์ฒด๋Š” user ๋ผ๊ณ  ํ‘œํ˜„๋˜๋Š”๊ฒŒ ๋งž๋‹ค๊ณ  ๋ด์„œ์š”.
์Šคํ”„๋ง ๊ฐ•์˜์—์„œ ํŒจํ‚ค์ง€๋ช…์— ๋Œ€ํ•ด ์–ด๋–ป๊ฒŒ ๋‹ค๋ฃจ๊ณ  ์žˆ๋Š”์ง€๋Š” ์ž˜ ๋ชจ๋ฅด๊ฒ ๋„ค์š”.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋„ค, ๋ง์”€ํ•ด ์ฃผ์‹  ๋ถ€๋ถ„์„ ์ดํ•ดํ•  ์ˆ˜ ์žˆ์„๊ฑฐ ๊ฐ™์•„์š”.
์ €๋Š” ๋‹จ์ˆœ ์ง€์‹์ด์—ˆ๋Š”๋ฐ, ์„ค๋ช… ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ๋Š” ๋‹จ์ˆ˜ํ˜•์œผ๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค. :)

Comment on lines 48 to 52
int winningCount = lotto.countNumberOfWinnings(winning);
if (winningCount >= MINIMUM_NUMBER_OF_WINNING) {
boolean checkedBonus = lotto.getBonus(winningNumbers.getBonus());
ranking.record(checkedBonus, winningCount);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lotto ๊ฐ€ ๊ฐ–๊ณ  ์žˆ๋Š” ๋‹น์ฒจ ๋ฒˆํ˜ธ ๊ฐฏ์ˆ˜๋ฅผ ๋ฌผ์–ด๋ณด๊ณ , ๋ณด๋„ˆ์Šค๊นŒ์ง€ ๊บผ๋‚ด์™€์„œ ์ฒดํฌํ•œ ๋‹ค์Œ Ranking ๊ฐ์ฒด์— set์„ ํ•ด์ฃผ๊ณ  ์žˆ๊ตฐ์š”.
๊ทธ๋Ÿฌ์ง€ ๋ง๊ณ  Lotto ๊ฐ์ฒด๊ฐ€ ์ง์ ‘ Ranking ๊ฒฐ๊ณผ๊ฐ’์„ ์ฃผ๋Š” ๋ฐฉ์‹์œผ๋กœ ๊ฐœ์„ ํ•ด์•ผ ํ•˜์ง€ ์•Š์„๊นŒ์š”?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ค‘๊ฐ„์— WinningNumber๋กœ ๋ถ„๋ฆฌํ•˜๊ณ , Ranking ๋ฐ˜ํ™˜ ๋“ฑ ๊ฐœ์„  ํ•˜๋ฉด์„œ, ์‹œ์•ผ๊ฐ€ ์ข์•„์ง€๊ณ , ์ข€ ๋” ๋ถ„๋ช…ํ•˜๊ฒŒ ์ •๋ฆฌํ•˜์ง€ ๋ชป ํ•œ๊ฑฐ ๊ฐ™์•„์š”.
๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

}
}

private List<List<Integer>> getPurchasedLottos() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋‹น์ฒจ๋ฒˆํ˜ธ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋ณด๊ด€ํ•  ๋งŒํ•œ ๊ฐ์ฒด๋ฅผ ์„ค๊ณ„ํ•ด์„œ ๊ทธ ๊ฐ์ฒด์˜ ๋ฆฌ์ŠคํŠธ๋กœ ์ „๋‹ฌํ•ด์ฃผ๋ฉด ๋” ์ข‹์„ํ…๋ฐ์š”?

Copy link

@sally-ksh sally-ksh Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋„ต, ๋งž์Šต๋‹ˆ๋‹ค.

}

public List<List<Integer>> getTickets(PurchasedLotto purchasedLotto) {
ArrayList<ArrayList<Integer>> tickets = lottoMachine.getTicket(purchasedLotto.getNumberOfTicket());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

java.util.ArrayList ์—๋งŒ ์กด์žฌํ•˜๋Š” ๋ฉ”์„œ๋“œ๋‚˜ ๋กœ์ง์— ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ๊ฐ•๊ฒฐํ•ฉ๋˜์–ด์•ผ ํ•  ํŠน๋ณ„ํ•œ ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?
๊ทธ๋ ‡์ง€ ์•Š๋‹ค๋ฉด ํ•ญ์ƒ List<T> ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
์ด์œ ๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€๊ฐ€ ์žˆ๋Š”๋ฐ์š”... https://stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n ๋ฅผ ์ฐธ๊ณ ํ•ด๋ณด์„ธ์š”.

Copy link

@sally-ksh sally-ksh Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์š”๊ตฌ์‚ฌํ•ญ ์ค‘์— "ArrayList๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๊ตฌํ˜„ํ•œ๋‹ค." ๊ฐ€ ์žˆ์—ˆ๋Š”๋ฐ ๋‹จ์ˆœํ•˜๊ฒŒ ๋ฐ˜ํ™˜ํƒ€์ž… ๊นŒ์ง€ ์จ์•ผ ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•˜๊ณ  ์ž‘์—…ํ–ˆ๋˜๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.
์ด๋ฒˆ์— ํŽ˜์–ด ํ•˜๋ฉด์„œ, ์œ„์—์„œ ์–ธ๊ธ‰๋œ ๋ถ€๋ถ„๋“ค๋„ ๊ทธ๋ ‡๊ณ 
์ฒด๋ ฅ๊ณผ ์ง‘์ค‘๋ ฅ์ด ๋งŽ์ด ๋–จ์–ด์ ธ์„œ ๋๊นŒ์ง€ ์ •๋ฆฌ ์•ˆ ํ•œ ๋ถ€๋ถ„๋“ค์ด ์žˆ์—ˆ๋Š”๋ฐ,
์ข€๋” ์ง‘์ค‘ํ•ด์„œ ๊ฐœ์„ ํ•˜๋„๋ก ์ด๋Œ์–ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๋˜ ๋ณด๋‹ค ์ข‹์€ ์ง€์‹ ์•Œ๊ฒŒ ๋œ ๊ฑฐ ๊ฐ™์•„์š”. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

- Lotto ๊ฐ์ฒด ๋‚ด๋ถ€์—์„œ ์ง์ ‘ Ranking ์ฒดํฌ
- Tickets : ์‚ฌ์šฉ์ž๊ฐ€ ๊ตฌ๋งคํ•œ ๋กœ๋˜ ๋ชฉ๋ก๋“ค (WinningNumber : ๋‹น์ฒจ๋ฒˆํ˜ธ ๋ฆฌ์ŠคํŠธ)
- ArrayList -> List ๋ณ€๊ฒฝ
- ํŒจํ‚ค์ง€๋ช… ๋‹จ์ˆ˜ํ˜•์œผ๋กœ ๋ณ€๊ฒฝ
- for๋ฌธ stream์œผ๋กœ ๊ฐœ์„ 
- boolean ๋ฐ˜ํ™˜ํ•˜๋Š” ํ•จ์ˆ˜์ด์šฉ์‹œ ๋ถˆํ•„์š”ํ•œ ์กฐ๊ฑด๋ฌธ ์ œ๊ฑฐ
refactor: ๋ฆฌ๋ทฐ ๋ฐ˜์˜
@rkolx rkolx changed the title [hanse & sally] ๋กœ๋˜ 2๋‹จ๊ณ„ - ๋ณด๋„ˆ์Šค ๋ฒˆํ˜ธ ์ถ”๊ฐ€ ๐Ÿ”€ [hanse & sally] ๋กœ๋˜ 2๋‹จ๊ณ„ - ๋ณด๋„ˆ์Šค ๋ฒˆํ˜ธ ์ถ”๊ฐ€ Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-BE Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants