对于一维数组:
String[] arrayStr = new String[]{"Java", "Node", "Python", "Ruby"};
System.out.println(Arrays.toString(arrayStr));
Output :[Java, Node, Python, Ruby]
对于二维数组:
String[][] arrayStr = new String[][]{{"JAVA","Node","Python"},{"C","C++","Objective-C"}};
System.out.println(Arrays.deepToString(arrStr));
Output:[[JAVA, Node, Python], [C, C++, Objective-C]]