Java Gossip: Arrays 的copyOf() - JDK 6. 在進階的陣列觀念 中,我們談到了陣列 複製,您可以使用System.arraycopy()方法來進行陣列複製:. int[] arr1 = {1, 2, 3, 4, 5 };
openhome.cc