title: How to save a large number of elements in a LinkedHashMap?
body: <p>I have a large number of elements that I want to save in a <code>LinkedHashMap</code>. The problem is that I have really a large number of elements, i.e. more than the size of the <code>Integer</code> class. Since the <code>size()</code> method of the <code>LinkedHashMap</code> class returns an <code>int</code>, I think that the number of elements in the <code>LinkedHashMap</code> can not exceed the possibility of the <code>int</code>. Is that right? If yes, what can I do?</p>
  
  <p>I should also mention that I actually don't know where exactly the problem is occurring in my code. That is just my guess that the problem is with the <code>size()</code> method of the <code>LinkedHashMap</code>. I just get the same error as <a href="https://stackoverflow.com/questions/19345337/java-lang-illegalargumentexception-contents-must-be-presorted">here</a>.</p>