for (int c = 2; c <= 5; c++) { for (int t = 0; t < 1000000; t++) { sink = new Object(); } System.gc(); GraphLayout.parseInstance(obj).toImage("array-" + c + "-before.png"); }
for (int c = 0; c < COUNT; c++) { if (Math.random() < 0.5) { array[c] = null; } }
for (int c = 7; c <= 10; c++) { for (int t = 0; t < 1000000; t++) { sink = new Object(); } System.gc(); GraphLayout.parseInstance(obj).toImage("array-" + c + "-after-gc.png"); } }