ArrayList和集合的区别? [英] difference of ArrayList and collection?

查看:44
本文介绍了ArrayList和集合的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(作为主题)

(as subject)

推荐答案

2003-12-24,Hei< ch ****** @ msn.com>写道:
On 2003-12-24, Hei <ch******@msn.com> wrote:
(作为主题)
(as subject)




你需要更具体一点...在我看来一个集合是一个包含一组对象的容器的通用术语。

数组是一个集合。 Hashtables,ArrayList,Queue,

Stack等 - 所有集合。他们中的一些有不同的存储或

索引模式,但所有都是另一种的集合:)


-

Tom Shelton

MVP [Visual Basic]



You need to be a little more specific... In my mind a collection is
sort of a generic term for a container that holds a group of objects.
Arrays, in their way, are a collection. Hashtables, ArrayList, Queue,
Stack, etc - all collections. Some of them have different storage or
indexing scheames, but all are a collection of one sort another:)

--
Tom Shelton
MVP [Visual Basic]


ArrayList继承自System.Collections,所以实际上就是这样。
< br $>
OHM

Tom Shelton写道:
ArrayList inherits from System.Collections, so in fact is just that.

OHM
Tom Shelton wrote:
2003-12-24,Hei< ch ****** @ msn.com>写道:
On 2003-12-24, Hei <ch******@msn.com> wrote:
(作为主题)
(as subject)



你需要更具体一点......在我看来,一个集合是
一个包含一组对象的容器的通用术语。
数组以它们的方式是一个集合。 Hashtables,ArrayList,Queue,
Stack等 - 所有集合。其中一些有不同的存储或索引方案,但所有都是另一种集合:​​)



You need to be a little more specific... In my mind a collection is
sort of a generic term for a container that holds a group of objects.
Arrays, in their way, are a collection. Hashtables, ArrayList, Queue,
Stack, etc - all collections. Some of them have different storage or
indexing scheames, but all are a collection of one sort another:)




问候 - OHM #OneHandedMan {at} BTInternet {dot} com



Regards - OHM# OneHandedMan{at}BTInternet{dot}com


" Hei" < CH ****** @ msn.com> schrieb
"Hei" <ch******@msn.com> schrieb
(作为主题)




RTFM

-

Armin < > http://www.plig.net/nnq /nquote.html
http:// www。 netmeister.org/news/learn2quote.html



RTFM
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


这篇关于ArrayList和集合的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆