I have a String[] with values like so:
String[]
public static final String[] VALUES = new String[] {\"AB\",\"BC\",\"CD\",\"AE\"};
Given
Use Array.BinarySearch(array,obj) for finding the given object in array or not.
Array.BinarySearch(array,obj)
Example:
if (Array.BinarySearch(str, i) > -1)` → true --exists
false --not exists