我不知道我可以在下面的字符打印之间添加空格是我的代码:
import java.util.*;
public class Slide{
private char[][] cells;
public Slide(){
cells= new char[][]{//
{'@','@','@','@'},
{'@','@','@','@'},
{'@','@','@','@'},
{'@','@','@','@'}
};
}
public Slide(char[][] cells){//
for(int row=0; row<cells.length; row++)
for(int column = 0; column<cells[row].length; column++)
this.cells = cells;
}
public void print(){
for(char[] a: cells){
System.out.println(a);//
}
}
}