To get the minimum element of HashSet, use the Collections.min() method. Declare the HashSet − Set<Integer> hs = new HashSet<Integer>();.
確定! 回上一頁