I have a List<String> a
and a String[] b
. I would like to return true if there is at least one member of the list inside the array. For that matter, it doesn't matter that I am dealing with a List<String>
and an String[]
. Both could be lists.
EDIT
Java 8 gives you a way to do it via streams, it seems. What about more basic ways?
Thanks