public class Arr { public static void main(String[] args) { char[][] arr = new char[4][]; arr[0] = new char[]{1, 2, 3, 4}; arr[1] = new char[]{12, 13, 14, 5}; arr[2] = new char[]{11, 16, 15, 6}; arr[3] = new char[]{10, 9, 8, 7}; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { System.out.print(String.format("%s", arr[i][j])); if (j == 3) { System.out.println(); } } } }}当我在eclipse中运行程序时,输出是有人可以帮忙找出错误在哪里吗?
添加回答
举报
0/150
提交
取消