How can I get the index of a key in LinkedHashMap ?
for example I got this :
index key value 0 "a" 10 1 "b" 20 2 "c" 30 Now I want to get the index of the key "b". What is in this case 1.
Any ways without a runtime of O(n) ? And I will use it in a loop so for example new ArrayList<String>(mapIndex.keySet()).indexOf(position_with_section_map[position]); wouldn't be a solution for me