📜  java 如何打印字符串[] - Java 代码示例

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

代码示例1
String[] array = new String[] {"John", "Mary", "Bob"};
System.out.println(Arrays.toString(array)); // [John, Mary, Bob]