conflict gamesuse two-dimensional "board programs that deal with such positional games need way of representing objects in two-dimensional space natural way to do this is with two-dimensional arraywhere we use two indicessay and jto refer to the cells in the array the first index usually refers to row number and the second to column number given such an array we can then maintain two-dimensional game boardsas well as perform other kinds of computations involving data that is stored in rows and columns arrays in java are one-dimensionalwe use single index to access each cell of an array neverthelessthere is way we can define two-dimensional arrays in java-we can create two-dimensional array as an array of arrays that iswe can define two--dimensional array to be an array with each of its cells being another array such two--dimensional array is sometimes also called matrix in javawe declare two--dimensional array as followsint[][ new int[ ][ ]this statement creates two-dimensional "array of arrays,ywhich is having rows and columns that isy is an array of length such that each element of is an array of length of integers (see figure the following would then be valid uses of array and int variables and jy[ ][ + [ ][ lengthj [ lengthtwo-dimensional arrays have many applications to numerical analysis rather than going into the details of such applicationshoweverwe explore an application of two-dimensional arrays for implementing simple positional game figure illustration of two-dimensional integer arrayywhich has rows and columns the value of [ ][ is and the value of [ ][ is