Python Array Get Function Hashmap Example Java