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
Win a copy of
Java 8 in Action
this week in the
Java in General
Convert ArrayList to List
Joined: Dec 17, 2008
Dec 17, 2008 09:08:00
I have this arrayList and I need to return this as List<TransactionSummary>.
Is there any way I could load the data from arrayList to List<TransactionSummary>
which is called list is doing this
The method parseResultSetRow() is returning TransactionSummary type.
Hope this makes sense.
BTW you probably can tell i am very new at this... so please hlp.
Joined: Sep 28, 2004
Dec 17, 2008 09:12:00
IS-A List. There is no need to convert it. Just return the
as the List.
Java Threads, 3rd Edition
Jini in a Nutshell
Java Gems (contributor)
Joined: Oct 13, 2005
Dec 17, 2008 11:29:00
And welcome to JavaRanch
I agree. Here's the link:
subject: Convert ArrayList to List
Question about Generics in Arrays
Usage of wildcard?
How to retain type of objects in arraylist ?
how to add an array to an ArrayList
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014