initialiuze a set witha string code example
Example 1: how to initialize a set in java
Set<E> h = new HashSet<E>();
Example 2: java linkedhashset initialize
LinkedHashSet<Integer> lsh=new LinkedHashSet();
lsh.add(1);
Set<E> h = new HashSet<E>();
LinkedHashSet<Integer> lsh=new LinkedHashSet();
lsh.add(1);