File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "arrays" Watch "arrays" New topic
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14272
    
  21

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 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: arrays