因為hashSet 底層是Java 的HashSet,所以印出時並不會照加入順序印出,會是無序的 val hashSet = hashSetOf("b", "a", "c") println(hashSet) // [a, b, c] ...
確定! 回上一頁