Jump to content
Sign in to follow this  
StephenHawking9

I need help to Convert List of Integer Objects to primitive int array.

Recommended Posts

Hi Experts, I have started learning java recently and looking into some practice exercise. Just wante to know if there is a easy way, to convert a List of java.lang.Integer objects to array of primitive int type (not integer). Something like List<Integer> to int []? Or I need to loop through each element in list and convert it? Please let me know. Please feel free to move this thread to right location just in case I have posted this in the wrong place. Thanks in advance.

Edited by StephenHawking9

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...