Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
用图片很容易解释,用文字很难做到: 1 2
如您所见,在终端中,打印工作正常。在eclipse中,如果前面的打印值为null
null
具体代码:
for(int colIndex = 0; colIndex<COL; colIndex++) { System.out.print(" "+board[rowIndex][colIndex]+" "); System.out.print("|"); }