I have a String[] with values like so:
publicstaticfinalString[] VALUES =newString[]{"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:
publicstaticfinalString[] VALUES =newString[]{"AB","BC","CD","AE"};
Given String s, is there a good way of testing whether VALUES contains s?
Anonymous User
09-Apr-2015