Could someone explain how it works? how this part sort numbers in arraylist? Arrays.sort(list); for(int j = 0; j<list.length; j++) { System.out.println(list[j]); }