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

Это мой Pull Request#1

Open
MaxZlorad wants to merge 3 commits intomain from
master
Open

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

Conversation

@MaxZlorad
Copy link
Owner

@MaxZlorad MaxZlorad commented Jul 6, 2024

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

Comment on lines +3 to +5
String name;
int speed;

Copy link

@estetika-panelek estetika-panelek Jul 6, 2024

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

@estetika-panelek estetika-panelek Jul 6, 2024

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

@estetika-panelek estetika-panelek Jul 6, 2024

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

@estetika-panelek estetika-panelek Jul 6, 2024

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

@estetika-panelek estetika-panelek estetika-panelek 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.

Comments

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