Skip to content

Conversation

@castleeom0001-collab
Copy link

제가 1주차 때 JAVA 실력이 부족해서 과제를 제출하지 않았지만 다시 공부해보며 과제를 완성시켰습니다.
다만 아쉬운 점으로는 제가 커밋에 익숙하지 않아 선배님들이 원하시는 방향인 코드를 적고 커밋하는 그런 방식으로 하질 않은 게 아쉬웠지만 이번에 과제를 하면서 어떤 식으로 해야 할 지 갈피를 잡았다고 생각해서 앞으로 더 잘 하도록 하겠습니다.

Copy link

@asa9874 asa9874 left a comment

Choose a reason for hiding this comment

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

2주차 과제 고생하셨습니다.👍
몇가지 코맨트 남겨뒀습니다.

racingGame.start();
}
}
}
Copy link

Choose a reason for hiding this comment

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

EOF 에 대해 알아보시면 좋을거같아요

private int position=0;
public Car(String name){this.name = name;}

public void move(int number){if(number>=4){position++;}}
Copy link

Choose a reason for hiding this comment

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

매직넘버에 대해서도 한번 알아보시면 좋을거같아요.

Comment on lines +25 to +28
int maxPosition = cars.stream()
.mapToInt(Car::getPosition)
.max()
.orElse(0);
Copy link

Choose a reason for hiding this comment

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

Stream 활용 좋아요 👍

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