Given an ArrayList, and we have to find/search an element from the list using Java program.
ArrayList.contains()
Method is used to check whether an element is exists in the ArrayList or not, this method return "false" if element is not found, and returns "true" if element exists in the ArrayList.
Syntax:
boolean ArrayList.contains(element);
Consider the program
Output