public class matrix {
public int[][] matrixDots(int numberofdot) {
int dots[][] = new int[numberofdot][numberofdot];
for (int m = 0; m < numberofdot; m++) {
for (int n = 0; n < numberofdot; n++) {
dots[m][n] = 0;
}
}
return dots;
}
public String[][] matrixlines(int numberofdot){
String lines[][]=new String[numberofdot+2][numberofdot+2];
for (int m = 0; m < numberofdot+2; m++) {
for (int n = 0; n < numberofdot+2; n++) {
lines[m][n] =" ";
}
}
for (int m = 0; m < numberofdot; m++) {
System.out.println("");
for (int n = 0; n < numberofdot; n++) {
System.out.print(dots[m][n]+" ") ;
}
}