We can replace this lambda element -> element with Function.identity() . Case where there might be duplicate keys. The javadoc for Collectors.toMap states: If ...
確定! 回上一頁