Java List containsAll() Method The containsAll() method of List interface returns a Boolean value ‘true’ if this list contains all the elements…
add()
-
-
Java List get() Method The get() method of List interface returns the element at the specified position in this list. Syntax public…
-
Java List hashCode() Method The hashCode() method of List interface returns the hash code value for this list. Syntax public int hashCode()…
-
Java List sublist() Method The sublist() method of List Interface returns a view of the portion of this list between the inclusive…
-
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 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…