Write a java program to create and fill Multidimensional
Arrays.
Answers
Answered by
3
Answer:
A multidimensional array is an array of arrays. Each element of a multidimensional array is an array itself. For example,
int[][] a = new int[3][4];
Here, we have created a multidimensional array named a. It is a 2-dimensional array, that can hold a maximum of 12 elements,
2-dimensional array in Java
2-dimensional Array
Remember, Java uses zero-based indexing, that is, indexing of arrays in Java starts with 0 and not 1.
Let's take another example of the multidimensional array. This time we will be creating a 3-dimensional array. For example,
String[][][] data = new String[3][4][2];
Here, data is a 3d array that can hold a maximum of 24 (3*4*2) elements of type
Explanation:
HOPE THIS ANSWER WILL HELP YOU
PLZZ MARK ME AS A BRAINLIST
Similar questions
World Languages,
3 months ago
English,
3 months ago
Math,
7 months ago
Math,
7 months ago
History,
1 year ago