copying array by value in java

前端 未结 5 1030
轻奢々
轻奢々 2020-12-19 00:42

I tried to make an independent copy of an array but couldnt get one. see i cannot copy it integer by integer using a for loop because of efficiency reasons. Is there any oth

5条回答
  •  情书的邮戳
    2020-12-19 00:56

    Arrays.copyOf() creates a new copy of an existing array (optionally with a different length).

提交回复
热议问题