Java Collection addAll() method The addAll() method of Java Collection Interface appends or inserts all the elements of the specified collection to…
retainall
-
-
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 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…
-
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…