使用ArrayList 儲存個數不定的物件, ArrayList coins = new ... File Purse.java ... 陣列的長度固定; 陣列的元件是特定型式, 不是Object; 使用[] 存取元件: data[4] = 29.95;
www.csie.ntu.edu.tw