B
brightoceanlight
Hi,
I basically have a set of strings :
String[] strs = {"First", "Next", "Third", "Fourth", "Fifth"};
as an array.
I would like to see if an element is contained in this set of strings.
If it was a Set, I could use the contains() method of Set or HashSet to
see if an element is contained in the set of strings. But there I
would have to load the elements into HashSet. Is there an easy way to
do this?
I basically have a set of strings :
String[] strs = {"First", "Next", "Third", "Fourth", "Fifth"};
as an array.
I would like to see if an element is contained in this set of strings.
If it was a Set, I could use the contains() method of Set or HashSet to
see if an element is contained in the set of strings. But there I
would have to load the elements into HashSet. Is there an easy way to
do this?