![]() |
VOOZH | about |
Tree_Set.clone()Parameters: The method does not take any parameters. Return Value: The function just returns a copy of the TreeSet. Below program illustrates the use of Java.util.TreeSet.clone() method:
TreeSet: [4, Geeks, To, TreeSet, Welcome] The cloned TreeSet: [4, Geeks, To, TreeSet, Welcome]