Skip to content

Conversation

@eKiva
Copy link
Owner

@eKiva eKiva commented Oct 24, 2024

Передаю на проверку домашнюю работу


public void UpdateLeader(String carName, short carSpeed) {
short carDistance = (short) (carSpeed * 24);
if (carDistance >= this.bestDistance) {

Choose a reason for hiding this comment

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

два условия избыточны.

@eKiva
Copy link
Owner Author

eKiva commented Oct 29, 2024

Прошу проверить новую версию домашней работы

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.

3 participants