Java Collection addAll() method The addAll() method of Java Collection Interface appends or inserts all the elements of the specified collection to…
iterator
-
-
Java Collection clear() Method The clear() method of Java Collection Interface removes all of the elements from this collection. It returns a…
-
Java Collection containsAll() Method The containsAll() method of Java Collection Interface returns a Boolean value ‘true’, if this collection contains all the…
-
Java Collection isEmpty() Method The isEmpty() method of Java Collection Interface returns the boolean value ‘true’ if this collection contains no elements.…
-
Java Collection remove() Method The remove() method of Java Collection Interface is used to remove a single instance of the specified element…
-
Java Collection removeAll() Method The removeAll() method of Java Collection Interface only removes those elements of the Collection that are contained in…
-
Java Collection retainAll() method The retainAll() method of Java Collection Interface keeps only those elements in this queue that are present in…
-
Java HashSet clone() Method The clone() method of Java HashSet class is used to return a shallow copy of the specified HashSet.…
-
Java HashSet isEmpty() Method The isEmpty() method of Java HashSet class is used to check wheather HashSet contains an element or not.…
-
Java HashSet iterator() Method The iterator() method of Java HashSet class is used to return an iterator of the same elements as…