什么是LinkedList构造函数中的集合参数 [英] whats meant collection parameter in the LinkedList constucor

查看:129
本文介绍了什么是LinkedList构造函数中的集合参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...

我正在尝试使用Linkedlist ....

但是我没有在链表中获得构造函数的工作.....

LinkedList(Collection c)

上面的构造函数中的Collection参数是什么意思..

是否可以通过简单的示例/程序进行指导...

Hi...

I''m trying to use Linkedlist ....

But i''m not getting the working of constructor in the linkedlist.....

LinkedList(Collection c)

What does mean the Collection parameter in the above constuctor..

Is it possible to guide through a simple example/program...

推荐答案

尝试以下示例:
http://backport-jsr166.sourceforge.net/doc/api/edu/emory/mathcs/backport/java/util/LinkedList.html [ http://www.roseindia.net/java/jdk6/linkedlistexample.shtml [ ^ ]
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/LinkedList.html [ ^ ]

谢谢,
Ambesha
Try this its self examplary:
http://backport-jsr166.sourceforge.net/doc/api/edu/emory/mathcs/backport/java/util/LinkedList.html[^]
http://www.roseindia.net/java/jdk6/linkedlistexample.shtml[^]
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/LinkedList.html[^]

Thanks,
Ambesha


阅读:
http://docs.oracle.com/javase/tutorial/collections/intro/index.html [^ ]

谢谢,
Prashant
read this :
http://docs.oracle.com/javase/tutorial/collections/intro/index.html[^]

Thanks,
Prashant


这篇关于什么是LinkedList构造函数中的集合参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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