Java笔记之数组时间:2023-03-08 16:08:121.int flags[] = new int[10];数组中的每个元素初始化为0. Arrays.fill(flags, 0);将数组中每个元素置为0.