>)
addAll(Collection)
retainAll(Collection implements List, RandomAccess, Cloneable, Serializable
ArrayList是可以调整数组大小,实现List的接口.ArrayList是基于实现动态数据的数据结构哦...,如果中间有进行删减,那么后面的元素会提前到前面空缺的位置,后面的也一样.所以LinkedList比较麻烦的,LinkedList是基于链表的数据结构哦~
总结LinkedList和ArrayList...= a.substring(1, 2);
// o
System.out.println(d);
}
}
描述
String类可以用于比较字符串,搜索字符串,提取字符串等等...案例:
比如在字符缓冲区中已经有对象dashu用a进行表示,然后调用a.append("coding");,而insert()插入的方法也容易,参数两个,第一个为插入的位置,第二个为插入的数据而已.