| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/AvinandanBose/JavaCollectionFramework/main/HashSetDemo3.java | [Back] [Original] |
import java.util.HashSet;
public class HashSetDemo3 {
public static void main(String[] args) {
HashSet set = new HashSet();
HashSet cloned_set = new HashSet();
set.add("A");
set.add("a");
set.add("B");
set.add("b");
System.out.println(set);
cloned_set = (HashSet)set.clone();
System.out.println(cloned_set);
}
}
| Web Proxy Viewer | New URL | Original Page |