i would greately appriciate if someone help me to sort this issue. how to draw the multidimentional array to the following question? class A{ public static void main(String ar[]){ int[][]a1 = {{1,2,3},{4,5,6},{7,8,9,10}}; System.out.println(a1[0][2]+","+a1[1][0]+","+a1[2][1]);
Originally posted by Hasitha_Randika: i would greately appriciate if someone help me to sort this issue. how to draw the multidimentional array to the following question? class A{ public static void main(String ar[]){ int[][]a1 = {{1,2,3},{4,5,6},{7,8,9,10}}; System.out.println(a1[0][2]+","+a1[1][0]+","+a1[2][1]);
} }
What do you mean by drawing multi dimensional array ?
If you wanted to see an arranged sequence of numbers in the following format then refer the code below 1,2,3 4,5,6 7,8,9,10