Skip to content

[권민상] 1주차 과제 제출#7

Open
code6150 wants to merge 2 commits intoBCSDLab-Edu:mainfrom
code6150:main
Open

[권민상] 1주차 과제 제출#7
code6150 wants to merge 2 commits intoBCSDLab-Edu:mainfrom
code6150:main

Conversation

@code6150
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@BaeJinho4028 BaeJinho4028 left a comment

Choose a reason for hiding this comment

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

줄넘김과 공백을 잘 신경쓰시면 좋을 것 같습니당

간단한 리뷰 남깁니담. 고생하셨어요

String a = in.nextLine();
List<Car> cars = new ArrayList<>();
for (String name : a.split(",")) {
if (name.isEmpty()) {throw new IllegalArgumentException("왜안적음");}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

isBlank() 도 알아두시면 좋을 것 같습니다.

}
}

public class Application {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Application에 로직이 많이 몰려 있어서 입력/검증/실행/출력을 메소드 또는 클래스로 분리하면 가독성이 더 좋아질 것 같습니다.

}
}

//조아요 조아요
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

주석이 좋네요 ㅋㅋ

Comment on lines +7 to +8
String name;
int moveCount;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

rivate으로 두고 getter를 통해 접근하도록 하면 캡슐화 측면에서 좋아질 것이라고 생각합니다

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