File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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]
It is sorta covered in the
JavaRanch Style Guide
subject: how to "concat" two ArrayLists ?
print( myWordToPrint ) vs print( myBigString )
How Many String Object?
how many eligible for Garbage Collection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015