Skip to content

Dev21 02 - #1

Open
al2407111 wants to merge 3 commits into
mainfrom
dev21_02
Open

al2407111 wants to merge 3 commits into
mainfrom
dev21_02

Conversation

@al2407111

Copy link
Copy Markdown
Owner

Работа 1

Comment thread src/main/java/Main.java
Calculate calculate1 = new Calculate();
Scanner scanner = new Scanner(System.in);

double people=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.

количество людей - целое число.

Comment thread src/main/java/Main.java
Scanner scanner = new Scanner(System.in);
int i = 0;
HashMap<Integer, String> inputProduct = new HashMap<>();
HashMap<Integer, Double> inputPrice = new HashMap<>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Что бы не использовать 2 мапы можно создать класс в котором будет два поля - цена и название товара и хранить их в листе, это будет гораздо удобнее.

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