2D arrya creation

At line no 20 what was the need to create a new array using new int