-
Oct 3rd, 2011, 10:53 AM
#1
Create a map from other maps
hi all
I have 3 maps already created and now I need to create a new one using the data stored in those maps.
Is there any way to create a map from other maps?
Thanks a lot
-
Oct 3rd, 2011, 07:43 PM
#2
Hello
1) Could you post your actual code? I am assuming you have three <util:map
2) why you are not rerefering one <util:map to the other, I need see (1) to get a complete panorama
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
-
Oct 7th, 2011, 12:54 PM
#3
Hi,
The below code fragment might help you.
Map<String, String> m=new HashMap<String, String>(); // create new map object
Map m1=x;
Map m2=y;
Map m3=z;
m.putAll(m1);
m.putAll(m2);
m.putAll(m3);
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules