Skip to content

6주차 미션 구현 완료(김종하)#2

Open
whdgk0602 wants to merge 1 commit intoallrounder-backend:mainfrom
whdgk0602:whdgk0602
Open

6주차 미션 구현 완료(김종하)#2
whdgk0602 wants to merge 1 commit intoallrounder-backend:mainfrom
whdgk0602:whdgk0602

Conversation

@whdgk0602
Copy link

No description provided.

public static void printEtc(String input){
System.out.println(input);
}
}

Choose a reason for hiding this comment

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

클래스명을 작성할 때 첫 글자도 대문자로 작성해야하는 것으로 알고 있습니다!


public static String getNumbeInput(){
System.out.println("시도할 횟수는 몇 회인가요?");
return scanner.nextLine();

Choose a reason for hiding this comment

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

입력받는 값에 대한 예외처리가 있으면 좋을 것 같네요!(공백, 숫자가 아닌 경우)

}

public String getState(){
return name + " : " + "-".repeat(position);

Choose a reason for hiding this comment

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

Car에서는 상태에 대한 관리를 맡고 있는 것 같은데, getState에서 출력 형식을 반환하는 것이 View의 성격이 보이는 코드인 것 같습니다!

@kokkumong
Copy link

한 학기동안 정말 고생 많으셨습니다!

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.

2 participants