Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

main#1

Open
Tr1ad0s wants to merge 1 commit intomain from
dev
Open

main #1
Tr1ad0s wants to merge 1 commit intomain from
dev

Conversation

@Tr1ad0s
Copy link
Owner

@Tr1ad0s Tr1ad0s commented Jan 12, 2025

No description provided.

String nameCar = scanner.next();

int speed = -1;
while (speed < 0 || speed > 250) {
Copy link

Choose a reason for hiding this comment

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

Здесь лучше так же давать сообщение об ошибке, чтобы пользователь сразу понимал что пошло не так

String leader = "";
int distansLeader = 0;

public void whoLeader(Car Car) {
Copy link

Choose a reason for hiding this comment

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

Больше подошло бы название addNewCar или что-то в таком духе

Comment on lines +66 to +67
String leader = "";
int distansLeader = 0;
Copy link

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

Reviewers

1 more reviewer

@kekulta kekulta kekulta left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /