79147114

Date: 2024-11-01 06:32:13
Score: 2.5
Natty:
Report link
List<Integer> cats = goodsList.stream()
.flatMap(c-> 
Stream.of(Collections.singleList(c.getFirstCategoryID()),c.getSecondCategoryIDList())).flatMap(stream -> stream.flatMap(Collection::stream))  .collect(Collectors.toList());

@ankitkpd

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ankitkpd
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Rezero