| Author |
arrays
|
Hasitha Randika
Ranch Hand
Joined: Sep 04, 2007
Posts: 50
|
|
i would greately appriciate if somebody help me in this case how to draw the multidimensional 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]); } }
|
 |
Abdullah Mamun
Ranch Hand
Joined: Mar 19, 2007
Posts: 99
|
|
Hi You can also declare and initialize this array as follows
|
MooN
|
 |
Mahesh Adhi
Greenhorn
Joined: Sep 12, 2007
Posts: 5
|
|
 i think by observing above picture you will get an idea. in that initialization is like below.
|
 |
Mahesh Adhi
Greenhorn
Joined: Sep 12, 2007
Posts: 5
|
|
|
 |
Mahesh Adhi
Greenhorn
Joined: Sep 12, 2007
Posts: 5
|
|
hello all, i am sorry for this, i hav tried twice but the picture is at my desk is not loading properly, if any one jst contact me.
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
The URL of your picture is: http://desktop/Arrays.bmp That's not a valid address on Internet...
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
 |
|
|
subject: arrays
|
|
|