Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step4 - 로또 (수동) #1828

Merged
merged 2 commits into from Aug 2, 2021
Merged

Step4 - 로또 (수동) #1828

merged 2 commits into from Aug 2, 2021

Conversation

lsj8367
Copy link

@lsj8367 lsj8367 commented Aug 1, 2021

벌써 마지막 스텝이네요❗️
이번 리뷰도 잘 부탁드립니다😄

@neojjc2 neojjc2 self-requested a review August 2, 2021 00:04
@neojjc2
Copy link

neojjc2 commented Aug 2, 2021

#tag @neojjc2

Copy link

@neojjc2 neojjc2 left a comment

Choose a reason for hiding this comment

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

안녕하세요 승재님 😄

4단계 구현도 잘 해주셨습니다 💯
이전 단계에서 구조 개선 작업을 잘 해주셔서
의외로 마지막 단계는 싱겁게 끝난 것 같은 느낌입니다 😄
제가 너무 괴롭혀드린게 아닌가 한편 걱정 되기도 하네요 😨 😅

그간 미션 진행하시느라 정말 고생많으셨습니다 😄
다음 미션 진행하시기 전에
이번 미션에서 진행하신 것들 한 번 더 정리하고 가시면
좋을 것 같습니다 😄

merge 하겠습니다

LGTM 👍

🔢 🔢 🔢 🔢 🔢


private int count = 0;

public static void duplicateValidate(Set<Integer> lottos) {
if(lottos.size() != MAX_LENGTH) {
Copy link

Choose a reason for hiding this comment

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

Set을 이용한 중복제거 좋은데요 👍
컨벤션만 다시 한번 확인하고 가시면 될 것 같습니다 😄

Suggested change
if(lottos.size() != MAX_LENGTH) {
if (lottos.size() != MAX_LENGTH) {


if(duplicated.size() != MAX_LENGTH) {
throw new IllegalArgumentException("당첨 번호는 중복이 될 수 없습니다.");
public List<Lotto> manualLottoNumber(int manualCount) {
Copy link

Choose a reason for hiding this comment

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

요구사항 반영 잘해주셨습니다 💯

@neojjc2 neojjc2 merged commit 059858e into next-step:lsj8367 Aug 2, 2021
@lsj8367 lsj8367 deleted the step4 branch August 2, 2021 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants