Pages

From array of primitives to Collection

I moved this post to Biting Code, my blog dedicated to JVM languages.

Convert an array of objects to a standard Java Collection it is quite easy, thanks to Arrays.asList(), but in case of primitive values we have to be more explicit.

No comments:

Post a Comment