-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
# Conflicts: # src/main/java/Calculator.java # src/main/java/Dish.java # src/main/java/Main.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
У Scanner есть удобный метод hasNextInt, можно сразу узнать без дополнительных проверок возможно ли интерпретировать строку как int
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тоже самое и с double - hasNextDouble
https://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html#hasNextDouble%28%29``
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эти проверки дублируются тут и в totalPriceForPerson
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут опечатался, должно быть y
gusar-off
commented
Dec 28, 2022
Вопрос ао ПР: при пуше изменения идут в ветку main, а не в dev. Как это исправить?
Это значит, что ты находишься в ветке main, чтобы сменить ветку у консольного приложения git есть команда checkout
git checkout dev сменит твою текущую ветку и позволит пушить в дев.
Вопрос ао ПР: при пуше изменения идут в ветку main, а не в dev. Как это исправить?