hi I have a method using varargs
public void methodA(int... is);
And I'd like to put a List into it like this
List<Integer> listOfIds = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9);
methodA(listOfIds);
how can I do ? ps: I tried this Using Arrays.stream(listOfIds).boxed().Collector.toArray( Integer[]::new ); but java told me Cannot resolve method 'stream(java.util.List<java.lang.Integer>)'