{"id":416,"date":"2019-02-13T23:03:48","date_gmt":"2019-02-13T15:03:48","guid":{"rendered":"http:\/\/www.eait.co\/?p=416"},"modified":"2019-04-05T12:32:53","modified_gmt":"2019-04-05T04:32:53","slug":"java%e6%95%b0%e7%bb%84%e6%8b%b7%e8%b4%9d","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=416","title":{"rendered":"java\u6570\u7ec4\u62f7\u8d1d"},"content":{"rendered":"<pre>\/**\r\n * Created by xabcd on 2019\/2\/13.\r\n *\/\r\npublic class java_arraycopy\r\n{public static void main(String args[])\r\n{\r\n    int a1[]={1,2,3,4};\r\n    int a2[] = {9,8,7,6,5,4,3,2};\r\n    System.arraycopy(a1,0,a2,0,3);\r\n    System.out.println(\"\u6570\u7ec4a1\u4e2d\u7684\u5185\u5bb9\uff1a\");\r\n    for (int i =0;i&lt;a1.length;i++)\r\n        System.out.print(a1[i]+\"  \");\r\n    System.out.println();\r\n    System.out.println(\"\u6570\u7ec4a2\u4e2d\u7684\u5185\u5bb9\uff1a\");\r\n    for(int b = 0; b&lt;a2.length;b++)\r\n        System.out.print(a2[b]+\"  \");\r\n    System.out.print(\"\u6570\u7ec4\u6253\u5370\u5b8c\u6210\");\r\n\r\n}\r\n\r\n}<\/pre>\n<p>System. arraycopy( source, 0, dest, 0, x) \u8bed\u53e5 \u7684 \u610f\u601d\u662f\uff1a \u590d\u5236 \u6e90 \u6570\u7ec4 \u4ece \u4e0b\u6807 0 \u5f00\u59cb \u7684 x \u4e2a \u5143\u7d20 \u5230 \u76ee\u6807 \u6570\u7ec4\uff0c \u4ece \u76ee\u6807 \u6570\u7ec4 \u7684 \u4e0b\u6807 0 \u6240 \u5bf9\u5e94 \u7684 \u4f4d\u7f6e \u5f00\u59cb \u5b58\u53d6\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre>\r\n\r\n\r\n\r\n\u7ed3\u679c\uff1a\r\n\u6570\u7ec4a1\u4e2d\u7684\u5185\u5bb9\uff1a\r\n1 2 3 4 \r\n\u6570\u7ec4a2\u4e2d\u7684\u5185\u5bb9\uff1a\r\n1 2 3 6 5 4 3 2 \u6570\u7ec4\u6253\u5370\u5b8c\u6210<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/** * Created by xabcd on 2019\/2\/13. *\/ public class ja [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,1],"tags":[],"class_list":["post-416","post","type-post","status-publish","format-standard","hentry","category-base_code","category-uncategorized"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=416"}],"version-history":[{"count":2,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":418,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions\/418"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}