摘要: 转自:http://blog.csdn.net/wuchuanpingstone/article/details/6678653个人建议:以下这篇文章,是从例子说明的方式,解释ArrayList、LinkedList,但是最好的方式还是看源代码。其实ArrayList就是一个动态数组,LinkedL... 阅读全文
posted @ 2014-08-27 21:42 明明是悟空 阅读(885) 评论(0) 推荐(0)
摘要: 为什么是Listlist=newArrayList(),而不直接用ArrayList?编程是要面向对象编程,针对抽象(接口),而非具体。List是接口,ArrayList是实现。实现List接口的有ArrayList、LinkedList、Vector等,所以用哪个就直接new一个接口实现这是一种很... 阅读全文
posted @ 2014-08-27 18:14 明明是悟空 阅读(6682) 评论(0) 推荐(0)