打印多维数组的技巧

Java提供Arrays.deepToString()方法来打印多维数组。只需调用System.out.println(Arrays.deepToString(multiArray));即可输出多维数组的所有元素,包括嵌套内容。