looking for Solution of 2D array in Java

Newbie Member
31Aug2006,12:09   #1
Suneels78's Avatar
Hi,

I m looking for solution to make a 2D array in java to make belown mentioned diagram and also how can we generate the output as again below mentioned.

########################
########################
########################
########################
########################
########################
########################
########################
########################
########################
Go4Expert Founder
31Aug2006,20:17   #2
shabbir's Avatar
Code: Java
for(int i = 0;i<n;i++)
{
    for(int i = 0;i<n;i++)
    {
        System.Out.Print("#");
    }
}
Instead of printing you can even get them into a two dimensional array.