package com.sxt.arraytest1; import java.util.Arrays; /* * 一维数组 */ public class ArrayTest2 { public static void main(String[] args) { //动态初始化 int[] arr1 = new int[5]; System.out.println(Arrays.toString(arr1));//初始化为0:[0, 0, 0, 0, 0] String[] s = new S