Java ArrayList的使用方法
首先ArrayList的一个简单实例: 1 package chapter11; 2 import java.util.ArrayList; 3 4 public class TestArrayList { 5 6 public static void main(String[] args) { 7 // TODO Auto-generated method stub 8 ArrayList cityList=new ArrayList(); 9 cityList.add("London"