《ShowYou数组代码》第44题:Arrays.toString()数组格式打印数组中元素 public class Test { public static void main(String[] args) { int[] a = {1,2}; System.out.println(a); System.out.println(Arrays.toString(a)); } }