I'm looking at how to convert an array of int numbers to a Linked list?
Here is my take but it doesn't work
int[] numbers = { 1, 4, 17, 7, 25, 3, 100 }; Arrays.sort(numbers); System.out.println(Arrays.toString(numbers)); System.out.println(numbers.length); System.out.println(getAverageValue(numbers)); // Convert array to list LinkedList<int[]> ll = new LinkedList(Arrays.asList(numbers)); System.out.println(ll.size()); // print 1 so something wrong for (int i = 0; i < ll.size(); i++) { System.out.println(i + " = " + ll.get(i)); // print 0 = [I@3419866c }