Package java.util
Class ArrayList
boolean contains(Object elem)
Overrides:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns true if this list contains the specified element.
Example
String text = "contains";
String text2 = "contains";
ArrayList aList = new ArrayList(2);
aList.add(text);
if (aList.contains(text2))
{
Logger.log("This list contains this element!");
}
A message is written to the logger if the string "contains" is contained into the aList.