In Java, how can I test if an Array contains a certain value?
- by Mike Sickler
I have a String[] with values like so:
public static final String[] VALUES = new String[] {"AB","BC","CD","AE"};
Given String s, is there a good way of testing whether VALUES contains s?