-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[로또] 박수현 미션 제출합니다. #206
Open
Suxxxxhyun
wants to merge
42
commits into
woowacourse-precourse:main
Choose a base branch
from
Suxxxxhyun:Suxxxxhyun
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[로또] 박수현 미션 제출합니다. #206
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…, 천원단위가 아닌경우 이에 맞는 예외메시지를 출력합니다.
… 이루어졌거나, 0보다 작거나, 천원단위가 아닌경우 이에 맞는 예외메시지를 출력합니다.
… 때문에 이를 활용하기 위해 LottoOneSet클래스를 생성합니다. LottoOneSet클래스를 통해 하나의 로또 리스트를 생성합니다. 이때, 하나의 로또 리스트를 생성할때, 1부터 45까지 이루어져있는 숫자 및 이 숫자들이 중복되지 않게 구현합니다. 이를 구현하기 위해, 제공된 List<Integer> numbers = Randoms.pickUniqueNumbersInRange(1, 45, 6);메소드를 활용합니다.
…해 getLottoOneSet메소드를 추가합니다.
…usNumber()을 추가합니다.
… 담당하는 WinningHistory의 ENUM클래스를 생성하였습니다. 또한, 모든 로또 리스트를 순회하여, 1등부터 5등까지 몇번나왔는지를 HashMap을 이용해 구현하였습니다.
…소드를 구현하였습니다. WinningHistory의 순서를 바꿔서, 굳이 내림차순정렬하지 않도록 구현하였습니다.
…ange()로 반환된 리스트가 불변객체임을 알게 되었고, 불변리스트를 정렬할 수 없기에 새로운 리스트를 토대로 정렬하도록 수정하였습니다.
…번호를 맞춘 개수가 0일 수 있음을 판단하였습니다. 따라서 null이 아닐때만 당첨내역이 갱신되도록 수정하였습니다.
…여, 이에 맞게 코드를 수정하였습니다.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
제가 사용한 domain은 아래와 같습니다.