// holding/Ex12.java // TIJ4 Chapter Holding, Exercise 12, page 410 /* Create and populate a List. Create a second List of the …
arraylist 源代码
ArrayList就是动态数组,用MSDN中的说法,就是Array的复杂版本,它提供了动态的增加和减少元素,实现了ICollection和IList接口,灵活的设置数组的大小等好处
// holding/Ex1.java // TIJ4 Chapter Holding, Exercise 1, page 394 /* Create a new class called Gerbil with an int gerbilNumber t…
// holding/Ex12a.java // TIJ4 Chapter Holding, Exercise 12, page 410 /* Create and populate a List. Create a second List of the …
// containers/Ex1.java // TIJ4 Chapter Containers, Exercise 1, page 809 /* Create a List (try both ArrayList and LinkedList) and…
// generics/CheckedList35.java // TIJ4 Chapter Generics, Exercise 35, page 711 // Modify CheckedList.java so that it uses the Co…
// generics/Ex29.java // TIJ4 Chapter Generics, Exercise 29, page 694 /* Create a generic method that takes as an argument a Hol…
// generics/Ex27.java // TIJ4 Chapter Generics, Exercise 27, page 680 // Show that covariancd doesn't work with Lists using Numb…
// generics/GenericCast33.java // TIJ4 Chapter Generics, Exercise 33, page 699 // Repair GenericCast.java using an ArrayList. i…
// arrays/ArrayOfGenerics10.java // TIJ4 Chapter Arrays, Exercise 10, page 762 // Modify ArrayOfGeneric.java to use containers i…
// arrays/Ex25.java // TIJ4 Chapter Arrays, Exercise 25, page 789 // Rewrite PythonLists.py in Java. import java.util.*; impor…