looking for Solution of 2D array in Java

Suneels78's Avatar, Join Date: Aug 2006
Newbie Member
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.

########################
########################
########################
########################
########################
########################
########################
########################
########################
########################
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.