By my understanding about internal working of LinkedHashMap, it stores values in a array of Node. where Node contains fields :
class Node<K,V> {
int hash;
K key;
V value;
Node<K,V> next;
Node<K,V> prev;
}
Correct me if I'm wrong, LinkedHashMap stores insertion order and to maintain that order it stores Node which is inserted before the current node at 'prev' and node which inserted after current node at 'next'. Then where it stores the new node which having same index value like current node ?