在Java 6 之前,最簡潔的方法是: placeholderCopy String[] newArray = new String[listOfCities.length + 1]; System.arraycopy(listOfCities, 0, ...
確定! 回上一頁