Ask Question

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

+2
Answers (1)
  1. 13 May, 23:44
    0
    String chessboard[][]=new String[6][6];

    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write the line that declares a two-dimensional array of strings named chessboard. that is, how would i declare a two-dimension array of ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers