AdvertisementsJava HashSet adding elements. The add method is used to add an element into the set. brands.add("Pepsi");.
確定! 回上一頁