40.4k views
5 votes
Write the line that declares a two-dimensional array of strings named chessboard. that is, how would i declare a two-dimension array of strings that is called chessboard? you would declare a string array by

1 Answer

2 votes

Answer:

String chessboard[][]=new String[6][6];

Step-by-step explanation:

This is the declaration of a string 2-D array in java.

String is the data type of the variable.

chessboard is the name of the variable.

6 is the size of the 2-D array.

new is the keyword for allocating space to array.

User Chynah
by
5.9k points