Monday, March 7, 2011

.NETand Java: Dictionary Object in both platforms.

While coding, we often feel the need for getting a value depending upon a key value. This can be accomplished through dictionary object. Thankfully C# came with dictionary object. A small example on how to use dictionary object can be found here:

http://www.dotnetperls.com/dictionary-keys


I searched through Java. They had this dictionary object before, but they have deprecated it for some reason. They have recommended using MAP object which works pretty much the same way a dictionary object works. A quick code snippet to know how Java Map object works can be found here:

http://www.easywayserver.com/blog/java-map-example/


** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**

No comments:

Post a Comment