title: How to get position of key/value in LinkedHashMap using its key
body: <p>I have a <code>LinkedHashMap</code> (called info) that contains name/age (string/int) pairs. How can I get the position of the key/value if I input the key? For example, if my <code>LinkedHashMap</code> looked like this <code>{bob=12, jeremy=42, carly=21}</code> and I was to search <code>jeremy</code>, it should return <code>1</code> as its in position 1. I was hoping I can use something like <code>info.getIndex(&quot;jeremy&quot;)</code>.</p>