📜  java print 2d array as table - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.392000             🧑  作者: Mango

代码示例3
static void debugV2(Object... obj) {
        System.out.println(Arrays.deepToString(obj)
                .replace("],", "\n").replace(",", "\t")
                .replaceAll("[\\[\\]]", " "));
    }

    static void debug(Object... obj) {
        System.err.println(Arrays.deepToString(obj).replace("], ", "]\n"));
    }