So, I have:
LinkedHashMap <String, LinkedHashMap <String , ArrayList<Integer>>> MYMap = new LinkedHashMap <String, LinkedHashMap <String , ArrayList<Integer>>>
Each Key
in the hashmap the size of the ArrayList
will increase by one, and it starts at one. So When I reach key 176 it will have 176 integers in the ArrayList
. So Obviously I get out of memory. Now I DO NEED to have ALL of those integers in the array. What are my options. AND if it's increasing the heap size, I need a way that when I do hand this project to someone they do not have to know that they have to increase the size.