pyinstaller -F -w app.py
sweets.stream()
.collect(Collectors.toMap(Integer::intValue, integer -> 1, Math::addExact))
.forEach((candyName, amount) -> {
if (amount >= min) {
hasMinAmount = true;
}
for (int i = 0; i < amount; i++) {
sb.append(candyName + " ");
}
});