Program to declare, initialize and print a 2D array of integers in Java

publicclass JAVA_040
{

publicstaticvoid main(String[] args)
{
int[][] array={ {10,-1,28,13,44} , {5,36,97,-18,11} };

System.out.println("The contents of the 2D Array are : \n");

for(int i=0;iout.println("Dimension # " + (i+1));

for(int j=0;jout.println("\t Array[" + i + "][" + j + "] = " + array[i][j]);
}
}
}

We Are Founder..