Skip to content

Проектная работа №1 - #1

Open
elkabelaya wants to merge 3 commits into
devfrom
24lemann
Open

elkabelaya wants to merge 3 commits into
devfrom
24lemann

Conversation

@elkabelaya

Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/main/java/Race.java Outdated
import java.util.HashSet;

public class Race {
HashSet<Car> cars = new HashSet<>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HashSet - не самая лучшая структура данных для такого случая. С такой реализацией класса Car все объекты будут уникальными и преимущество сета хранить только уникальные значения теряется. Здесь лучше подойдет список

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Исправлено

Kira Bogova and others added 2 commits December 11, 2024 05:55
…я приложение падает с ошибкой", добавлено информирование пользователя о неверном вводе скорости, добавлена проверка на пустое имя и на дубль имен автомобилей.
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