I'm struggling to pass a List of Strings into a method requiring the parameter "String...".
Can anybody help me out?
// How to put names into dummyMethod?
List<String> names = getNames();
public void dummyMethod(String... parameter) {
mInnerList.addAll(Arrays.asList(parameter));
}