Best way to convert a collection into an array in java
I am trying to convert ArrayList into integer array, but its throwing CTE, Is it possible to convert directly a collection into an array i.e. is there any build-in utility class or method for doing this thing only?
Can you answer this question?
Write Answer1 Answers