1. 背景 自己在测试HashSet时,发现其输出Integer是有序的。 2. 测试 public static void hashSetObjectTest(){ Set<Integer> set = new HashSet<Integer>();