【发布时间】:2014-02-25 11:49:49
【问题描述】:
代码:
public void placeO(int xpos, int ypos) {
for(int i=0; i<3;i++)
for(int j = 0;j<3;j++) {
// The line below does not work. what can I use to replace this?
if(position[i][j]==' ') {
position[i][j]='0';
}
}
}
【问题讨论】:
-
与
Character.UNASSIGNED比较——不是''或0。
标签: java loops char compare charat