Results 1 to 2 of 2
- 06-19-2012, 11:21 AM #1
Member
- Join Date
- Jun 2012
- Posts
- 6
- Rep Power
- 0
Convert List of Integer Objects to primitive int array
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.
- 06-19-2012, 11:26 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,400
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Convert List of Integer Objects to primitive int array
By StephenHawking9 in forum New To JavaReplies: 1Last Post: 06-16-2012, 08:07 AM -
How to create an array of objects which has integer field
By shaztech in forum New To JavaReplies: 1Last Post: 10-16-2011, 09:58 AM -
How to convert array of Objects into array of Strings
By elenora in forum Advanced JavaReplies: 1Last Post: 06-10-2011, 03:48 PM -
What is the difference between Integer class and int primitive data type?
By rajkobie in forum New To JavaReplies: 1Last Post: 04-19-2011, 04:32 PM -
How to convert List to Array
By Java Tip in forum java.langReplies: 0Last Post: 04-16-2008, 10:37 PM


LinkBack URL
About LinkBacks

Bookmarks