copyOf()方法在java.util.Arrays類中。它複製指定的數組,使用false截斷或填充(如有必要),因此副本具有指定的長度。 用法: copyOf(int[] original, int newLength).
確定! 回上一頁