Skip to content

Conversation

@audgk54587
Copy link

No description provided.

@audgk54587 audgk54587 changed the title Feat/racingcar [황명하_BackEnd] 2주차 과제 제출합니다 Apr 7, 2025
Copy link

@krSeonghyeon krSeonghyeon left a comment

Choose a reason for hiding this comment

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

2주차 과제 고생하셨습니다.
다음부터는 기간 내에 제출 부탁드려요


public class Application {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);

Choose a reason for hiding this comment

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

여기서는 굳이 scanner가 필요하지 않을 것 같아요

printWinners(winners);
}

private static List<Car> getCars(Scanner sc) {

Choose a reason for hiding this comment

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

메소드를 분리해주셨네요 좋습니다

{
winCars.add(car.getName());
List<String> winners = new ArrayList<>();
for (Car car : cars) {

Choose a reason for hiding this comment

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

좀 더 함수들을 세분화할 수 있을 것 같아요

{
// TODO: 프로그램 구현

public class Application {

Choose a reason for hiding this comment

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

클래스가 여러 책임을 가지고 있어서 더 분리할 수 있을 것 같아요

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