How to create a 2D map in Java?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-23T14:01:17Z Indexed on 2010/03/23 14:03 UTC
Read the original article Hit count: 384

I would like to have a mapping which maps two string into one string. For example: map["MainServer","Status"] return "active". What is the best way to do it in Java. Should I use HashMap which include another HashMap as its elements?

© Stack Overflow or respective owner

Related posts about java

Related posts about associative-array