Is it possible to convert and Object[]array to and integer Array.
The reason I am asking is because I added integers to an ArrayList and then converted this into and Object[]array.
ArrayList<Integer> list = new ArrayList<Integer>();
Object[] arrayNumbers = list.toArray();
Which would be the best way of getting this into and int[]array? All I need to do is to sort these numbers. Can I sort all my numbers in this arraylist without converting it into an int[]array?
Kind regards