This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to obtain array from arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "how to obtain array from arraylist" Watch "how to obtain array from arraylist" New topic
Author

how to obtain array from arraylist

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
can any body tell how to obtain an array of type Y from a java.util.List
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

See how Java API classes are linked in our posts?

Look at the toArray method on that page, the one that takes a type.

(Gave up on trying to make that link work.)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to obtain array from arraylist
 
Similar Threads
save and load JPEG image from disk
Non-serializable Object to Byte Array
how to get system font?
Stored procdure return multi dimensional array?
Class not found exception