??????????????????“???????????£?ī???????????????”?????????????β???????????????????????????????????????У??????????????
???????д?????Java???£??????????????????
??????????
????1.???????????
????1 public static void main(String[] args)
????2     {
????3         int [] a={1??3??5??7??8??9};
????4         int[] b=a;   //???︳?????????????
????5         System.out.println(Arrays.toString(a));
????6         b[2]=21;       //????????????b?????a?????????
????7         System.out.println(Arrays.toString(a));
????8         System.out.println(Arrays.toString(b));
????9         /*?????????[1?? 3?? 5?? 7?? 8?? 9]
????10                               [1?? 3?? 21?? 7?? 8?? 9]
????11                               [1?? 3?? 21?? 7?? 8?? 9]
????12          */
????13     }
???????????????????????????????
????2.??????????
????public static void main(String[] args)
????{
????int [] a={1??3??5??7??8??9};
????int[] b=a.clone();//?????????a?????????????????b
????System.out.println(Arrays.toString(a));
????b[2]=21;
????System.out.println(Arrays.toString(b));
????/*???н????
????*               [1?? 3?? 5?? 7?? 8?? 9]
????[1?? 3?? 21?? 7?? 8?? 9]
????*/
????}
????С??
??????????????????????????·??
???????????? ????????????????????????
???????Object ???clone???????????????????????????????????????????????Ч????????????????????????????????????
???????System??arraycopy????????????????????????????????????????????????????????λ?????????????????????????????????????λ?á?
????Array???copyOf??????????copyOfRange()??????????????????