java.lang.OutOfMemoryError: Java heap space
I'm trying to create a 2 dimensional array that is fairly large and I keep getting the error "java.lang.OutOfMemoryError: Java heap space".  I've tried the -Xmx command and I still get it.

Could there be an alternative I could use to 2D arrays?  Or a way to increase heap size that works.
java.lang.OutOfMemoryError: Java heap space
===

I'm trying to create a 2 dimensional array that is fairly large and I keep getting the error "java.lang.OutOfMemoryError: Java heap space".  I've tried the -Xmx command and I still get it.

Could there be an alternative I could use to 2D arrays?  Or a way to increase heap size that works.