Skip to content

Это мой Pull Request#1

Open
MaxZlorad wants to merge 3 commits intomainfrom
master
Open

Это мой Pull Request#1
MaxZlorad wants to merge 3 commits intomainfrom
master

Conversation

@MaxZlorad
Copy link
Copy Markdown
Owner

Это мой Pull Request, вы только посмотрите!

@MaxZlorad MaxZlorad closed this Jul 6, 2024
@MaxZlorad MaxZlorad reopened this Jul 6, 2024
Comment on lines +3 to +5
String name;
int speed;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🍏 Лучше пометить эти поля как private и добавить для них геттеры/сеттеры. О них можно почитать здесь https://javarush.com/groups/posts/1928-getterih-i-setterih

}
}
rootProject.name = "BillCalculator"
rootProject.name = "Java-Module-Project"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🍏 Некоторые лишние изменения вошли в пуллреквест из-за неправильной работы с ветками.
Оставлю памятку по работе с ветками на будущее

Снимок экрана 2024-07-06 в 11 26 47

Comment on lines +8 to +10
final int AMOUNT_CARS = 3;
final int MAX_SPEED = 250;
final int MIN_SPEED = 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 Круто, что вынес в константы эти значения

Comment on lines +38 to +39
} catch (NumberFormatException error) {
System.out.println("Введены некорректное значение скорости. Попробуй ещё. \nЯ в тебя верю, на этот раз у тебя обязательно получится!");
Copy link
Copy Markdown

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