Skip to content

Conversation

@vvverman
Copy link

No description provided.

}


// public static int countPersons(int number) {

Choose a reason for hiding this comment

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

Закомментированный код лучше убрать.

product.setName(scanner.nextLine());

System.out.println("Введите цену товара");
product.setPrice(scanner.nextDouble());

Choose a reason for hiding this comment

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

Точно также как с hasNextInt тут нужно использовать hasNextDouble

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