Skip to content

перый пулл - #1

Open
chromasoma wants to merge 14 commits into
mainfrom
dev
Open

chromasoma wants to merge 14 commits into
mainfrom
dev

Conversation

@chromasoma

Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/main/java/Calculator.java Outdated
Comment thread src/main/java/Main.java Outdated
Comment thread src/main/java/Calculator.java Outdated
Comment thread src/main/java/Product.java Outdated
while(true) {
System.out.println("Введите название товара:");
name = scanner.nextLine().trim(); // исправлено
if (name == null || name.isEmpty())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

можно вместо trim() + isEmpty использовать isBlank()

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.

круто, спасибо! но убрать в данном случае пробелы - хорошо) а так буду иметь в виду.

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