Computer Science, asked by dafloxiii2247, 1 year ago

How to declare multidimensional array in java?

Answers

Answered by sweetassugar
0
To declare an array, you need to tell it what type it is. Think of declaring a variable: it is the same concept: You need to tell Java if it's dealing with strings, numbers, or objects. Simply creating the multidimensional array doesn't actually do anything; let's look at how data actually gets into the array.
Answered by Oreki
1

We can declare a Double Dimensional Array (DDA) in Java by using the following syntax,

  <Data_Type>[ ] [ ] <Array_Name> = new <Data_Type>[x][y];

Similar questions