Skip to content

Создание калькулятора - #1

Open
DariaKasackaja wants to merge 2 commits into
mainfrom
dev
Open

DariaKasackaja wants to merge 2 commits into
mainfrom
dev

Conversation

@DariaKasackaja

Copy link
Copy Markdown
Owner

No description provided.

Kasatskaya-DV added 2 commits February 7, 2024 00:42
-добавлено форматирование слова 'рубль' в зависимости от целочисленной части стоимости
Product product = new Product(name, price);
boolean res = products.add(product);
if( res ){
System.out.println("Товар '" + name+"'"+

@Grigoriy-M Grigoriy-M Feb 7, 2024 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Вместо конкатенации строк лучше использовать StringBuilder

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