The contains() method of List interface in Java is used for checking if the specified element exists in the given list or not . … Return Value: It returns true if the specified element is found in the list else it returns false.
The contains() method of List interface in Java is used for checking if the specified element exists in the given list or not . … Return Value: It returns true if the specified element is found in the list else it returns false.