I'm trying to declare a String array within a method invocation, like so:
if (emailYaml.keySet().containsAll(new String[]{"mailto","subject","text"}))
I'm not entirely sure if this is the best approach in any case (i'm pretty new to programming), but in any case Eclipse tells me:
The method containsAll(Collection<?>) in the type Set<String> is not applicable for the arguments (String[])
Could anyone help with a solution?
Many thanks
Arrays.asList("mailto","subject","text")