Computer Science, asked by riteshsethway9936, 1 year ago

How to declare multidimensional array in java?

Answers

Answered by InsaneJaat
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' to actually do anything; let's look at how data actually gets into the array.

THANKS!!
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