Telling 32-bit or 64-bit in Java

Here is a short tip to check whether the current machine (JVM) is running 32 bit or 64 bit in Java and thus Processing.
 

int arch = Integer.parseInt(System.getProperty("sun.arch.data.model"));

 
The integer variable arch will give either 32 or 64 depending on the JVM.