CSC/ECE 517 Fall 2007/wiki1 1 aman: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
'''Comparison of HashMaps in Java vs hashes in Ruby'''
'''Comparison of HashMaps in Java vs hashes in Ruby'''


'''Map'''
'''Map''' : A map is any object which stores associations between keys and their corresponding values, in which both keys and the values are objects. The key is unique , however the values may not necessarily be unique.
A map is any object which stores associations between keys and their corresponding values, in which both keys and the values are objects. The key is unique , however the values may not necessarily be unique.
'''HashMaps in java''' : use hashtables to store the map
HashMaps in java use hashtables to store the map

Revision as of 22:43, 11 September 2007

Comparison of HashMaps in Java vs hashes in Ruby

Map : A map is any object which stores associations between keys and their corresponding values, in which both keys and the values are objects. The key is unique , however the values may not necessarily be unique. HashMaps in java : use hashtables to store the map