public class Demo {
public static void main(String[] args) throws Exception {
int[] arr1 = new int[3];
int[] arr2 = new int[]{1,2,3};
int[] arr3 = {1,2,3};
}
}
java一维数组的三种定义形式
最新推荐文章于 2022-12-19 23:35:45 发布