Skip to content

Conversation

@Sla-als
Copy link
Owner

@Sla-als Sla-als commented Apr 26, 2020

No description provided.

<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

Choose a reason for hiding this comment

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

Во время разработки возникает много разных файлов и папок, которые не относятся к коду и могут засорять репозиторий. Для того, чтобы не убирать их вручную каждый раз существует gitignore - это файл .gitignore, который кладется в папку с проектом и в нем описываются файлы, которые GIT должен игнорировать. Советую настроить его, чтобы такие технические файлы не попадали в GIT. Пример можно посмотреть здесь - https://github.com/Naikonst/Geekbrains-Java3

}
// сравнить
public boolean compare(Box <?> box){
return (this.getWeight()-box.getWeight() < 0.0001);

Choose a reason for hiding this comment

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

Здесь надо использовать модуль - Math.abs, иначе 2 коробка будет больше, то разница будет отрицательной и вернется true.

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