I'm pretty new to java and have tried to fix this problem for the past day or so but not sure how. I seem to be getting the following error whenever i try to save the output from my program to a file:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
The file itself is about 1.5mb.
I'm just curious is there any way of increasing the memory so i don't get this error?