Skip to content

Готовая проектная работа - #41

Closed
lliioonnss wants to merge 1 commit into
Yandex-Practicum:devfrom
lliioonnss:dev
Closed

lliioonnss wants to merge 1 commit into
Yandex-Practicum:devfrom
lliioonnss:dev

Conversation

@lliioonnss

Copy link
Copy Markdown

No description provided.

Comment thread src/main/java/Main.java
scanner.nextLine();
totalPrice += price;
totalName.append(name + "\n");
System.out.println("Добавлено " + name + ". Его стоимость " + price + ". Хочешь добавить еще блюдо? Если нет - напиши завершить");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

В таких случаях для вывода лучше использовать System.out.printf, ему можно передать параметры, которые будут подставлены в строку.

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