摘要:
public class Sparse { public static void main(String[] args) { // 稀疏数组的目的是为了减少无意义的数组元素 /*0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 阅读全文
摘要:
public class ArrayClass { public static void main(String[] args) { int[] arr = {1,2,3,4,5}; // 打印数组 System.out.println(Arrays.toString(arr)); // 填充数组( 阅读全文