Open
Conversation
kokkumong
reviewed
May 27, 2025
| public static void printEtc(String input){ | ||
| System.out.println(input); | ||
| } | ||
| } |
There was a problem hiding this comment.
클래스명을 작성할 때 첫 글자도 대문자로 작성해야하는 것으로 알고 있습니다!
|
|
||
| public static String getNumbeInput(){ | ||
| System.out.println("시도할 횟수는 몇 회인가요?"); | ||
| return scanner.nextLine(); |
There was a problem hiding this comment.
입력받는 값에 대한 예외처리가 있으면 좋을 것 같네요!(공백, 숫자가 아닌 경우)
| } | ||
|
|
||
| public String getState(){ | ||
| return name + " : " + "-".repeat(position); |
There was a problem hiding this comment.
Car에서는 상태에 대한 관리를 맡고 있는 것 같은데, getState에서 출력 형식을 반환하는 것이 View의 성격이 보이는 코드인 것 같습니다!
|
한 학기동안 정말 고생 많으셨습니다! |
This file contains hidden or 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
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.
No description provided.