二维数组输出空心菱形 文采不行,不瞎扯了,直接附上代码private static void printDiamond(int row) { //菱形行数 row = row%2==1?row:row+1; //分配行 char[][]arr = new char[row][]; for (int cols=-1, i = 0; i < arr.length; i++) { cols = Java 2023-10-25 59 点赞 0 评论 89 浏览