Reason behind taking two 2 square Brackets

i did not understad why we took two square bracket in the spiral and wave print.

Two dimensional array are defined as:
int[][] twoD_arr = new int[10][20];