Android: I have an array of HashMaps, how to find a particular HashMap entry given a key that is within one of the HashMap entries?
<p>I have an array of HashMaps, how to find a particular HashMap entry given a key that is within one of the HashMap entries?</p>

<p>For example, I have this:</p>

<pre><code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; bathroomList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
</code></pre>

<p>I also know a key within one of the array entries I want to find:</p>

<pre><code>String selectedKey = ((TextView) view.findViewById(R.id.key)).getText().toString();
</code></pre>

<p>How do I iterate the array to find it?</p>

<p>Any help appreciated.</p>
