Use of contains() method

[If the specified element is present in the array,it returns true otherwise returns false.]