So an array with three elements will have just 3 valid indexes: 0, 1, and 2. ... Try this: Java. int [] newArr=new int[arr.length];.
確定! 回上一頁