contains method
Test if a name is part of this NameList.
contains(str )
Parameters
String str
The name to look for.
Returns
booleantrue if the name has been found, false otherwise.
这对您有帮助吗?