Bookmark Topic Watch Topic
  • New Topic

What is the best way to merge HashMaps in Java?  RSS feed

 
Ioanna Katsanou
Ranch Hand
Posts: 131
1
Java Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello everyone,

I have in my code a few hasMaps



and I want to merge them all in one final map.
I am using Java SE7 , so I cannot use SE8 merge method.

Which is the best way to merge these maps?
Thanks
Ioanna
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Didn't you just ask this question a short time ago?

Let's continue the discussion over there. Locking this thread.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!