Looping through two Lists and pass Lista object and Listb object to a calling method
when a matching code is found in listb
Once a match is found, stop processing list b and return to lista and loop
loop through list B until a match is found.
Is this how I loop through two lists?
How do I stop the looping in the second loop when a match is found?
I do not want to pass a list to the called method, but pass the
object as I loop trough. How do I pass both lista and listb objects?
public getMatching Code (List <itemVO) lIstA, List(ItemVO) listB
for itemVO voA : listA
for item voB : listB
if listb.getCode = lista.getCode
Do I use voA and voB to pass to the method?
calculateDiff (voA, VoB)
Exit this loop and get the next value
in the first loop and then reenter this loop
how do I stop this loop and go back to the first loop and re-enter this loop