import java.util.*;
public class HashSetDemo
{
public static void main(String args[])
{
//creates hashset
HashSet<String> hs = new HashSet<String>();
System.out.println("Initional size of LinkedList: "+hs.size());
System.out.println("HashSet is empty: "+hs.isEmpty());
//add element in hashset
hs.add("Red");
hs.add("Blue");
hs.add("Pink");
hs.add("Green");
hs.add("Pink");
System.out.println("HashSet elements after adding: "+hs);
//delete the element
hs.remove("Green");
System.out.println("HashSet elements after delete: "+hs);
System.out.println("HashSet is empty: "+hs.isEmpty());
}
}