permaculture playing cards*
The moose likes Spring and the fly likes Spring adding nested ArrayList entries 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 » Frameworks » Spring
Bookmark "Spring adding nested ArrayList entries" Watch "Spring adding nested ArrayList entries" New topic

Spring adding nested ArrayList entries

Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

I would like to add all entries of list2 to list , so that when i iterate the "list" in java i will get all entries ( coolman,coolman two)

may i know how to achieve the same ?

Thanks in advance

Thanks, Ganesh Gowtham
Bill Gorder

Joined: Mar 07, 2010
Posts: 1648

Take a look at the section entitled collection merging in the reference documentation here:

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: Spring adding nested ArrayList entries
Similar Threads
java.lang.NoClassDefFoundError: java/util/concurrent/ConcurrentSkipListMap
[Spring Security] No bean named 'springSecurityFilterChain' is defined
Spring 3.0 + REST Annotations
XML: multiple bean references - how to change them in one line?
Why do transactions not start when bean definitions are moved to <application>-servlet.xml?