List /Set/Map 都加入了of 和copyOf 方法, 適用於創建不可變的集合(Immutable Collection) var list = List.of("Hello", "World", "Java"); var copy = List.
確定! 回上一頁