List<string> a = new ArrayList(); a.add("A"); //依序在動態陣列 ... Integer(10));但是JAVA提供簡化寫法,如a.add(10),JAVA會自動轉換為int物件).
確定! 回上一頁