数组

使用数组四步走:
1声明数组:int[]a;
2分配空间:a=new int[5];
3赋值:a[0]=8;
4处理数据:a[0]=a[0]*10;

方法1:边声明边赋值
int[]score={10,20,30,}
int[]score=new int[]{10,20,30,}

数组复制方法
   语法
      public static void arraycopy(object.src,int srcpos,objeltdest,intdestpos,int length)
   参数
      src-原数组
      srcpos-原数组中饿起始位置
      dest-目标数组
      destpos-目标数据中的起始位置
      length-要复制的数组元素的数量

原文地址:https://www.cnblogs.com/banxia123-ha/p/6856729.html