-
Notifications
You must be signed in to change notification settings - Fork 0
Be/main/yeoshin java lv2 #22
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
base: main
Are you sure you want to change the base?
Conversation
duckgii
commented
Jan 9, 2025
- Lv2. 구현 완료했습니다.
- 하드코딩된 리터럴이 없도록 주의해서 진행했습니다!
chyo1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰에서 공통되는 부분 다 찾아서 바꿔보기~! (hint. 상수, 출력 문자열)
수고하셨습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| private final String solution; | |
| BinarySearch() { | |
| solution = "반띵 ㄱㄱ"; | |
| } | |
| private static final String solution = "반띵 ㄱㄱ"; |
변수로 둘 거라면 상수화를 추천합니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum 내부 필드 활용 굿
벗 파일 분리 해.줘.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enum 클래스 내부의 static 상수로 옮겨주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int보다 랜덤한 AlgorithmType을 뽑은 후 해당 타입을 넘기는게 좋을 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| System.out.println(DEFAULT + algorithmTypes[firstAlgorithm].getType() + DELIMITER + algorithmTypes[secondAlgorithm].getType()); | |
| System.out.println("오늘의 알고리즘 : %s, %s", algorithm1.getType(), algorithm2.getType()); |
처럼 하나의 문자열로 만들어서 넘겨주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
상동
|
다른분들이 다 잘 써주셨고, 또 잘 작성해주셔서 좋네요 but 군데군데 접근지정자가 비어보이네요 like my 알고리즘 기본기 |