問題:
I have a String[]
with values like so:我有一個String[]
的值如下:
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
?給定String s
,是否有一種測試VALUES
是否包含s
的好方法?