A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
how to "concat" two ArrayLists ?
Joined: Jun 21, 2005
Jul 13, 2005 19:34:00
I have two
, 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 ?
author and iconoclast
Joined: Jul 08, 2003
Jul 13, 2005 20:19:00
ArrayList a1 = ... ArrayList a2 = ... [B]a1.addAll(a2);[/B]
[Jess in Action]
I agree. Here's the link:
subject: how to "concat" two ArrayLists ?
how many eligible for Garbage Collection
print( myWordToPrint ) vs print( myBigString )
How Many String Object?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014