@@ -0,0 +1,551 @@
+import java.util.*;%0Aclass Set_example%0A%7B%0A    public static void main(String%5B%5D args)%0A    %7B%0A        Set%3CString%3E hash_Set = new HashSet%3CString%3E();%0A        hash_Set.add(%22Paris%22);%0A        hash_Set.add(%22London%22);%0A        hash_Set.add(%22Rome%22);%0A        hash_Set.add(%22Rome%22);%0A        hash_Set.add(%22Norway%22);%0A        System.out.print(%22Set output without the duplicates%22);%0A %0A        System.out.println(hash_Set);%0A %0A        System.out.print(%22Sorted Set%22);%0A        Set%3CString%3E tree_Set = new TreeSet%3CString%3E(hash_Set);%0A        System.out.println(tree_Set);%0A    %7D%0A%7D%0A

Create Set.java