File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "arrays" Watch "arrays" New topic


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}};

Abdullah Mamun
Ranch Hand

Joined: Mar 19, 2007
Posts: 99


You can also declare and initialize this array as follows

Mahesh Adhi

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

Joined: Sep 12, 2007
Posts: 5
Mahesh Adhi

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: 15092

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:
subject: arrays
It's not a secret anymore!