Java Collection remove() Method The remove() method of Java Collection Interface is used to remove a single instance of the specified element…
retainall
-
-
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 List equals() Method The equals() method of List interface compares the specified object with this collection for equality. It returns a…
-
Java List indexOf() Method The indexOf() method of List interface returns the index of the first occurrence of the specified element in…
-
Java List isEmpty() Method The isEmpty() method of List interface returns a Boolean value ‘true’ if this list contains no elements. Syntax…
-
Java List size() Method The size() method of List Interface returns the total number of elements present in this list. Syntax public…
-
Java List sort() Method The sort() method of List Interface sorts the given list according to the order specified in the comparator.…
-
Java List spliterator() Method The spliterator() method of List Interface creates a Spliterator over the elements in the given list. Syntax default…
-
Java List toArray() Method The toArray() method of List interface returns an array containing all the elements present in the list in…