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

Практическая работа No1#1

Open
formerFox wants to merge 4 commits intomain from
dev
Open

Практическая работа No1 #1
formerFox wants to merge 4 commits intomain from
dev

Conversation

@formerFox
Copy link
Owner

@formerFox formerFox commented Sep 2, 2024

Созданы 2 класса Car, Race и изменен main


while(true){
System.out.println("Введите количество машин:");
if(scanner.hasNextInt()){
Copy link

@Grigoriy-M Grigoriy-M Sep 3, 2024

Choose a reason for hiding this comment

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

Если ввести отрицательно число, то далее программа будет работать некорректно. Добавь проверку на отрицательное число.

Copy link
Owner Author

@formerFox formerFox Sep 3, 2024

Choose a reason for hiding this comment

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

добрый день.
image

у меня работает и с отрицанием

Copy link
Owner Author

@formerFox formerFox Sep 3, 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

@Grigoriy-M Grigoriy-M Grigoriy-M 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.

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