Skip to content

Первый коммит проекта 2 спринта#1

Open
TatiAnikina wants to merge 2 commits intomainfrom
dev
Open

Первый коммит проекта 2 спринта#1
TatiAnikina wants to merge 2 commits intomainfrom
dev

Conversation

@TatiAnikina
Copy link
Copy Markdown
Owner

No description provided.


public class Calculator {
ArrayList<Product> productsList = new ArrayList<>();
Scanner scanner = new Scanner(System.in);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Перед коммитом стоит приводить файлы к правильному стилю, так как код будут смотреть другие разработчики. В IDEA это легко делать путём вызова горячей комбинации клавиш (она зависит от ОС), её можно посмотреть в меню Code → Reformat Code

System.out.printf(String.format("Для каждого из " + people + " человек сумма к оплате %.2f %s", finalCalc, formatter.formatter(finalCalc)));
}
public double totalSum() {
Double sum = 0.0;
Copy link
Copy Markdown

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