如何加入两个ArrayLists? [英] How do I join two ArrayLists?

查看:104
本文介绍了如何加入两个ArrayLists?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何加入两个ArrayLists?一个是颜色列表,另一个是对象,我必须编写一个LinkedList,其中ArrayList1和ArrayList2匹配颜色与对象。写了两个数组列表,但不知道如何启动LinkedList,一个例子真的很有帮助。谢谢

How do I join two ArrayLists? One is a list of colors, the other with objects, I have to then write a LinkedList with ArrayList1 and ArrayList2 matching the color with the object. Wrote the two array lists but not sure how to start the LinkedList, an example would be really helpful. Thanks

推荐答案

检查一下: http://stackoverflow.com/questions/189559/how-do-i-join-two-lists-in-java [ ^ ]


这篇关于如何加入两个ArrayLists?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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