java.lang.Boolean public static int hashCode(boolean value) { return value ? 1231 : 1237; } JDK 1.8新增一个hashCode方法,true的hashCode为1231,false的hashCode为1237, why? https://stackoverflow.com/questions/3912303/boolean-hashcode public static int compare(bool…