In other words, lets first create an Empty HashSet and then add elements to it. Set<String> shoppingSet = new HashSet<>(); shoppingSet.add("Bread"); ...
確定! 回上一頁