A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
how to "concat" two ArrayLists ?
Artemesia Lakener
Ranch Hand
Joined: Jun 21, 2005
Posts: 162
posted
Jul 13, 2005 19:34:00
0
I have two
ArrayList
, and each one contains a number of same type of objects. So I want to "concat" them together (because they contain same type of objects). How to do that ?
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
15
I like...
posted
Jul 13, 2005 20:19:00
0
ArrayList a1 = ... ArrayList a2 = ... [B]a1.addAll(a2);[/B]
[Jess in Action]
[AskingGoodQuestions]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: how to "concat" two ArrayLists ?
Similar Threads
print( myWordToPrint ) vs print( myBigString )
String declaration
object comparison
How Many String Object?
how many eligible for Garbage Collection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter