Java ArrayList的使用方法

zhanshcom 13 0 PDF 2020-12-31 00:12:33

首先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"

用户评论
请输入评论内容
评分:
暂无评论