By passing another collection to the TreeSet constructor, you can copy entire collections elements to the TreeSet. import java.util.ArrayList; import java.util.
確定! 回上一頁