wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to create a List from an Array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to create a List from an Array?" Watch "How to create a List from an Array?" New topic
Author

How to create a List from an Array?

Holmes Wong
Ranch Hand

Joined: Feb 18, 2002
Posts: 163
Hi,
I know I can get an item from an array, then add
it to a list. But what is the best way to do it?
I cannot find any array or list function to achieve it in one step. Any sugestion?
Tom Hughes
Ranch Hand

Joined: Feb 09, 2002
Posts: 86
You can turn a array into a List by using the

I think that's what you wanted.
Tom
Holmes Wong
Ranch Hand

Joined: Feb 18, 2002
Posts: 163
Thanks, very helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a List from an Array?
 
Similar Threads
Array and ArrayList
Proper way to remove and shift elements of an array
Remove an element from array by index
Forbidden Conversions
Why <T> T[] toArray(T[] a) method returns