File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

array to arraylist

 
Steve Jiang
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Steve,

Why not look here?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic