I checked on debugging mode that value array have only 4 object on end method but when program went back on main method, after executeDefragmentation(), still printing full array with null.