ArrayList存儲自定義對象並遍歷,要求加入泛型,並用加強for遍歷

import java.util.ArrayList;import java.util.Iterator;public class ArrayListDemo1 {public static void main(String[] args) {//建立集合對象ArrayList<Student> array = new ArrayList<Student>();//建立學生對象Student s1
相關文章
相關標籤/搜索