Sample Example in Java

 
public class Sample {
public void getData()
{
HashSet hs=new HashSet();
hs.add("A");
hs.add("B");
hs.add("O");
hs.add("E");
hs.add("z");
hs.add("K");
hs.add("P");
hs.add("A");
hs.add(null);
return (hs);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *