摘要: 初始化 Java中数组是固定长度,数组变量是个对象。 NullPointerException 空指针异常。 ArrayIndexOutOfBoundsException 索引值越界。 数组三种初始化的方式 int[] arr1 = {1,2,3}; int[] arr2 = new int[]{1 阅读全文
posted @ 2021-08-04 20:18 苏黎世见 阅读(500) 评论(0) 推荐(0) 编辑