Похожие чаты

What'S wrong with this line? incompatible types: Integer cannot be converted

to boolean

3 ответов

9 просмотров
decoder- Автор вопроса

added obj.containsKey(x) working fine now

decoder- Автор вопроса
decoder
added obj.containsKey(x) working fine now

but when I printing obj getting empty object {}

By the way, what you're trying to do is a common thing, there's already a nice readable one-liner for that in streams api https://www.baeldung.com/java-groupingby-collector

Похожие вопросы

Обсуждают сегодня

Карта сайта