I am trying the following code
String[] buffer = new String[1447891223];
Arrays.fill(buffer, "0.0");
The above code gives me java.lang.OutOfMemoryError: Java heap space
Is there any way i could do the above way optimally?
MY sts.ini file have the following configuration
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms1024m
-XX:MaxPermSize=512m
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx4000m