What's so different between arrays and HashMaps?

Arrays are ordered collections while HashMaps are unorderedArrays use indices to access valuesHashMaps use keys to access valuesUnlike arrays, HashMaps have to be initialized

Sweet! Arrays are ordered collections and use indices to access values whereas HashMaps are unordered and use keys for value retrieval.

Yikes! Arrays are ordered collections and use indices to access values whereas HashMaps are unordered and use keys for value retrieval.