I know that Java have its own garbage collection, but sometimes I want to delete the garbage manually. Is there any way to do the work like that? And considering that I have
If you intend to reduce the amount of memory used after a certain point, you might be better off using arrays for your variables so that you can set an array to null once it is no longer necessary. This way, it takes much less time for the garbage collector to clean up all of your data.