exception in thread 'main' java.lang.outofmemoryerror: java heap space

场景:Exception in thread "main" java.lang.OutOfMemoryError: Java heap

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space,怎么办
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ,怎么办。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

------解决方案--------------------
给代码
------解决方案--------------------
探讨
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ,怎么办。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。