Collections.contains()

Signature

boolean contains ( Object collection, Object element )

Domain

ACTION

Description

Returns true if this collection contains the specified element.

Parameters

NameTypeDescription
collectionObjectThe Collection object
elementObjectElement whose presence in this collection is to be tested

Returns

TypeDescription
booleantrue, If this collection contains the specified element

Cautions

none