Skip to content

Conversation

@SL-TX
Copy link
Owner

@SL-TX SL-TX commented Oct 24, 2022

No description provided.


public class Recept {

Map<Tovar,Integer> MnozhestvoProductov = new HashMap<>();
Copy link

Choose a reason for hiding this comment

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

Названия переменных всегда пишутся с маленькой буквы в camelCase
И лучше всегда выбирать private в качестве модификатора доступа если только мы как то не работаем с этим полем в классах потомках


Map<Tovar,Integer> MnozhestvoProductov = new HashMap<>();
private final String name;
public Integer SumCostTovar(){
Copy link

Choose a reason for hiding this comment

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

названия методов тоже всегда пишутся в camelCase

Copy link
Owner Author

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.

3 participants