MULTI DIMENSIONAL ARRAY

Multi Dimensional Array

How to declare an array:

int i[ ] [ ]=new int[3][2];// here it shows structure of two dimensional array. Two dimensional means the array element can contain another Array as values. Something like matrix format i.e. in format of rows and columns. Here [3][2] means its contain total 3 rows and each row contain 2 columns.

initialize two Dimensional Array

How to populate two dimensional array:

If we want to populate two dimensional array we should use the index in matrix format i.e rows and columns. [3][2] here 3 represents number of rows and 2 represents number of columns. Means for each row there are 2 columns.

About Java Padho

Einstein said, "It is the supreme art of the teacher to awaken joy in creative expression and knowledge." Great teachers are scarce, as they hold nothing back and give everything away. Javapadho is the brainchild of such an extraordinary teacher, i.e. Mr. Praveen Kumar Chandaliya, the founder of SDJ Infosoft.