Array
| Method Attributes | Method Name and Description |
|---|---|
| <boolean> |
contains(needle)
Tests if an array element contains the specified String by iterating
over each array element and calling String.contains(needle).
|
| <int> |
indexOfContains(needle)
Finds which array element contains the specified String by iterating
over each array element and calling String.contains(needle).
|
Method Detail
{boolean}
contains(needle)
Tests if an array element contains the specified String by iterating
over each array element and calling String.contains(needle).
- Parameters:
- {String} needle
- Returns:
trueif an array element contains the specified String value,falseotherwise.
{int}
indexOfContains(needle)
Finds which array element contains the specified String by iterating
over each array element and calling String.contains(needle).
- Parameters:
- {String} needle
- Returns:
- The index of the first matching array element or "-1" if none matches.