File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes array to arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

array to arraylist

Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 107
is there easy way to convert array to arraylist without using for loop?

I need to insert tehe object into array when a object is not in existing array. The existing code is set with array in a lot of places and I don't want to add for loop in everyplace.

Thanks,

Steve
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
Steve,

Why not look here?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Indeed. Please stop posting duplicate copies of this question -- I already deleted one in this forum, and now I see you've reposted it. Please post just one copy of a question -- doing otherwise just waste's people time and makes them not want to help you in the future.

I'm closing this duplicate.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: array to arraylist
 
Similar Threads
Copy existing Array into new ArrayList
toArray performance
functions contains for array ?
LinkedList - Kathy Sierra
reading a user chosen file into array