1、Arrays.toString
用来快速打印一维数组的数据元素列表
2、Arrays.deepToString 快速打印一个二维数组的数据元素列表
public static strictfp void main(String[] args) {
String[][] arr = {{"aaa","bbb"},{"ccc"}};
for(int x=0;x<arr.length;x++){
for(int y=0;y<arr[x].length;y++){
System.out.println(arr[x][y]);
}
}
//Arrays.deepToString 快速打印一个二维数组的数据元素列表
System.out.println(Arrays.deepToString(arr));
}