String a = new String("whoohoo");
myList.add(a);
String b = new String("Frog");
myList.add(b);
int theSize = myList.size();
Object o = myList.get(1);
myList.remove(1);
一般数组
boolean isIn = myList.contains(b);
String[] myList = new String[2];
String a = new String("whoohoo");
myList[0]=a;
String b = new String("Frog");
myList[1]=b;
int theSize = myList.length;
String o = myList[1];
myList[1]=null;
boolean isIn = false;
for(String item : myList){
if(b.equals(item)){
isIn = true;
break;
}
}