Re: how to convert a collection into an int array
Monday, November 7, 2005 07:59 AM
In your unformatted code, you're not trying to convert a Collection to an int, instead you're casting an Integer object's int value, that is a primitive, to an int object.
Apart from being nonsense, this gives you a runtime error. Working as designed.