I don\'t understand why the following does not work:
public void doSomething(int... args){ List broken = new ArrayList(Arrays
You can solve this using Guava:
List broken = new ArrayList<>(Ints.asList(args))
Or with streams:
List broken = Arrays .stream(array) .boxed() .collect(Collectors.toCollection(ArrayList::new));