ArraySupportpublic class ArraySupport extends Object This class contains static methods for working with
arrays. |
Methods Summary |
---|
public static boolean | contains(java.lang.String[] array, java.lang.String value)Returns true if the specified value matches one of the elements
in the specified array.
boolean isIncluded = false;
if (array == null || value == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (value.equals(array[i])) {
isIncluded = true;
break;
}
}
return isIncluded;
|
|