今天學到了一個方法!分享給大家學習下!public static void main(String [] as){
Student a = new Student(
Student b = new Student(
Student c = new Student(
List<Student> list = new ArrayList<Student>();
list
list
list
System
for(Student s: list){
System
}
a
list
System
for(Student s: list){
System
}
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25977.html