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. ######################## ######################## ######################## ######################## ######################## ######################## ######################## ######################## ######################## ########################
Code: 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.