0
我有一个小课题来完成我的课程,但我有点卡在解决这个问题,基本上我需要打印一个多维数组中的Unicode字符到一个表,12行和5列。到目前为止,我有这样的:Java在列+行中的多维数组中打印unicode字符?
public class MultiArrTest {
public static void main(String[] args0) {
char[][] uc = new char[12][5];
int x = 64;
for (int i = 0; i < uc.length; i++) {
for (int j = 0; j < uc[i].length; j++) {
uc[i][j] = (char) x++;
System.out.print(uc[i][j] + " ");
System.out.println();
}
}
}
}
这将打印unicode的,但只有在一个专栏中,我觉得有点傻在这里,但任何人都可以给我一个建议?
非常感谢。
哇,一个简单的办法。至少代码是正确的,谢谢。 – 2013-02-24 00:42:29
@CharlieCoplestone不用客气。请不要忘记[将此帖标记为答案](http://meta.stackexchange.com/a/5235/182862) – 2013-02-24 00:43:16