How to Delete all the elements from HashSet ?

follow url site de rencontres pour hommes riches http://adetacher.com/misroe/jisdr/3379 rencontres seniors 05 pseudonyme site de rencontre https://bristolquakers.org.uk/drova/4291 here site de rencontre femme cherche femme http://www.hawkerucc.org/monaxinja/8218 get link Delete all the elements from HashSet

Below example shows how to delete all entries at one call from HashSet. By calling clear() method, we can remove all elements from HashSet at once.

package HashSet;

import java.util.HashSet;

public class HashSetClear {

  public static void main(String[] args) {
    HashSet<String> hs = new HashSet<String>();
        //add elements to HashSet
    hs.add("Selenium");
    hs.add("Java");
    hs.add("QTP");
        System.out.println("My HashSet content:");
        System.out.println(hs);
        System.out.println("Clearing HashSet:");
        hs.clear();
        System.out.println("Content After clear:");
        System.out.println(hs);
}

}

Output:
My HashSet content:
[Java, Selenium, QTP]
Clearing HashSet:
Content After clear:
[]