Skip to content

Сдача калькулятора счета#93

Open
AndrewkaW wants to merge 3 commits intoYandex-Practicum:masterfrom
AndrewkaW:master
Open

Сдача калькулятора счета#93
AndrewkaW wants to merge 3 commits intoYandex-Practicum:masterfrom
AndrewkaW:master

Conversation

@AndrewkaW
Copy link
Copy Markdown

Не понял как удалить коммит с файлами которые добавил по ошибке.

listProduct = listProduct.concat(name + ";\n");
System.out.println("Введите цену товара");
double price = scanner.nextDouble();
totalPrice =totalPrice + 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.

Можно использовать конструкцию totalPrice += price;

}
else{
return "рублeй";
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Для множественного выбора лучше использовать конструкцию switch-case

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