Java8 toMap exception message confusing [duplicate]
问题 This question already has answers here : Why does Collectors.toMap report value instead of key on Duplicate Key error? (4 answers) Java 8 toMap IllegalStateException Duplicate Key (2 answers) Ignore duplicates when producing map using streams (6 answers) Alternative for throwingMerger in Java 8 (1 answer) Collectors.toMap with same keys(print same key) (2 answers) Closed last year . Got this exception: java.lang.IllegalStateException: Duplicate key 50 I looked over every map that is using