Is there a fancy way to cast an Integer array to an int array? (I don\'t want to iterate over each element; I\'m looking for an elegant and quick way to write it)
T
Using Guava, you can do the following:
int[] intArray = Ints.toArray(intList);
If you're using Maven, add this dependency:
com.google.guava guava 18.0