How to declare multidimensional array in java?
Answers
Answered by
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
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
English,
7 months ago
Math,
7 months ago
Math,
7 months ago
Math,
1 year ago
CBSE BOARD X,
1 year ago
Social Sciences,
1 year ago