The idea is simple, create an object holding 1MB of bytes, ... getRuntime(); System.out.printf("[%d] free memory: %s%n", index++, rt.
確定! 回上一頁