object = new Node();
object = new Node("Hello");
   public static void main(String[] args) throws Exception {       // Warm up all classes/methods we will use       runGC();       usedMemory();       // Array to keep strong references to allocated objects       final int count = 100000;       Object[] objects = new Object[count];       long heap1 = 0;       DisplaySystem display = DisplaySystem.getDisplaySystem("LWJGL");       display.createWindow(800, 600, 32, 60, false);       // Allocate count+1 objects, discard the first one       for (int i = -1; i < count; ++i) {           Object object = null;           // ### Instantiate your data here and assign it to object           object = new Node();           // ###           if (i >= 0)               objects[i] = object;           else {               object = null; // Discard the warm up object               runGC();               heap1 = usedMemory(); // Take a before heap snapshot           }       }       runGC();       long heap2 = usedMemory(); // Take an after heap snapshot:       final int size = Math.round(((float)(heap2 - heap1)) / count);       System.out.println("'before' heap: " + heap1 + ", 'after' heap: " + heap2);       System.out.println("heap delta: " + (heap2 - heap1) + ", {" + objects[0].getClass()               + "} size = " + size + " bytes");       for (int i = 0; i < count; ++i)           objects[i] = null;       objects = null;       display.close();       System.exit(0);   }