Announcement Announcement Module
Collapse
No announcement yet.
Create a map from other maps Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment


    • #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

      Comment

      Working...
      X