cookiejar
asked on
adding from 1 list to another list
Two lists are passed to this method one list has items and one list is empty.
I want to populate List B with List A.
How do I declare and reference LISTA and LISTB to populate from A to B?
public List<ItemVO> getLow(List<ItemVO> ListA, List<ItemVO> ListB)
for ( loop through List A)
if ListA.getStatus = "LOW"
add to ListB
return ListB
I want to populate List B with List A.
How do I declare and reference LISTA and LISTB to populate from A to B?
public List<ItemVO> getLow(List<ItemVO> ListA, List<ItemVO> ListB)
for ( loop through List A)
if ListA.getStatus = "LOW"
add to ListB
return ListB
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER