Java Collection retainAll() method The retainAll() method of Java Collection Interface keeps only those elements in this queue that are present in…
iterator
-
-
Java Collection toArray() Method The toArray() method of Collection Interface returns an array containing all the elements present in the collection. The…
-
Java Collection add() method The add() method of Java Collection Interface inserts the specified element in this Collection. It returns a Boolean…
-
Java ConcurrentLinkedQueue add() method The add() method of ConcurrentLinkedQueue class inserts the specified element at the tail of this ConcurrentLinkedQueue. The addAll()…
-
Java Collection addAll() method The addAll() method of Java Collection Interface appends or inserts all the elements of the specified collection to…
-
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 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 add() Method The add() is a method of Java HashSet class which adds the specified element to this set if…