Arrays.asList() of an array
Let’s consider the following simplified example: public class Example { public static void main(String[] args) { int[] factors = {1, 2, 3}; ArrayList<Integer> f = new ArrayList(Arrays.asList(factors)); System.out.println(f); } } At the println line this prints something like “[[I@190d11]” which means that you have actually constructed an ArrayList that contains int arrays. Your IDE and … Read more