Get ArrayList entry of a HashMap Entry [closed]

You can simply use the get method.


You set with put and access with get.

If you want to get a specific element, just chain the get method for ArrayList.

Whatever element = stateIndex.get(nameOfEntry).get(5);// For any type.

Browse More Popular Posts

Leave a Comment