wood burning stoves
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
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

array to arraylist

Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 124
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.


Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226

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

Joined: Jul 08, 2003
Posts: 24193

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
It's not a secret anymore!