SyntaxFix
Write A Post
Hire A Developer
Questions
Retaining all questions ids with small tweak
Map<Integer, Boolean> answerMap = answerList.stream() .collect(Collectors.toMap(Answer::getId, a -> Boolean.TRUE.equals(a.getAnswer())));