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?
home / developersection / forums / in java, how can i test if an array contains a certain value?
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?
Anonymous User
09-Apr-2015