Source Code : Initializing a Two Dimensional Array
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Initializing a Two Dimensional Array

//A two dimensional array of int values is initialized, and the element
//at [0][2] is displayed.
public class Test2Darray {
public static void main(String args[]) {
int[][] multiD = {
{ 1, 2, 3, 4 },
{ 5, 6, 7 }
};
System.out.println("The element at [0][2] is " + multiD[0][2]);
}
}
Thank with us