Array Program Example -
class array1 { public static void main(String arg[]) { int ar[][]={{3,5,7},{4,7,2}}; int n=ar.length; System.out.println("The list of elements are"); for(int i=0;i<n;i++) for (int j=0;j<n;j++) System.out.println(ar[i][j]); } }
0 comments:
Post a Comment