In javascript we can select a value from an array using a key instead of an index number, doing something like this:  

`objectName["propertyName"]` or `objectName.propertyName`

There is something like this in JAVA?