Hi,
I am using ArrayList to hold some datas.
I am using the following code to hold the datas in the ArrayList
List testList = new ArrayList(Collections.nCopies(9999999), "A"));
I am getting exception has "java.lang.OutOfMemoryError: Java heap space "
when the above line is executed.
Can anyone help me on this how to resolve the issue ..?
thx