Java?????Java??????????
???????????? ???????[ 2015/12/4 10:37:19 ] ??????????????? ???????????
??????????????????“???????????£?ī???????????????”?????????????β???????????????????????????????????????У??????????????
???????д?????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()??????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11