Originally posted by Ernest Friedman-Hill:
(...) so have you had time to look at the Javadocs? Maybe you need a stronger hint: you need one specific ArrayList constructor, then one method described on the page I've linked to. C'mon, it's not so hard...
I (not the OP) took the bait, only to regret it. Guess I found it harder than you expected because -
I kept skimming through the documentation, not really reading it. I assumed the method you were referring to, would return an array list (somehow I lost the significance of your advice to use another constructor).[list] I find the method
poorly named. It might have better been named as
. Just my opinion, of course.[/list]
Thank you for such an answer. This will take me several days to forget as opposed to the 30-second half-life of reading a ready-made solution. :-)
- Anand
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery