You can use the object Runtime to get this information.
- freeMemory() Returns the amount of free memory in the Java Virtual Machine - maxMemory() Returns the maximum amount of memory that the Java virtual machine will attempt to use. - totalMemory() Returns the total amount of memory in the Java virtual machine
Example:
Post by:autobot
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards