DennisKoks
YaBB Newbies
Offline
Posts: 13
Re: When filled with loop, ArrayList doesn't match
Reply #1 - Jul 13th , 2008, 10:03am
Now here is the console feedback when the ArrayList is filled manually and it works fine: list1 size: 0 list1 participant: [] list2 participant: [test1, test2, test3, test4, test5] user test1 added user test2 added user test3 added user test4 added user test5 added tobeShure test1 tobeShure test2 tobeShure test3 tobeShure test4 tobeShure test5 ---------------------------Enters the second loop here list1 size: 5 list1 participant: [test1, test2, test3, test4, test5] list2 participant: [test1, test2, test3, test4, test5] list1 size: 5 list2 size: 5 list1 participant: test1 list2 participant: test1 These users matched test1 == test1 list1 participant: test1 list2 participant: test2 list1 participant: test1 list2 participant: test3 list1 participant: test1 list2 participant: test4 list1 participant: test1 list2 participant: test5 list1 size: 5 list2 size: 5 list1 participant: test2 list2 participant: test1 list1 participant: test2 list2 participant: test2 These users matched test2 == test2 list1 participant: test2 list2 participant: test3 list1 participant: test2 list2 participant: test4 list1 participant: test2 list2 participant: test5 list1 size: 5 list2 size: 5 list1 participant: test3 list2 participant: test1 list1 participant: test3 list2 participant: test2 list1 participant: test3 list2 participant: test3 These users matched test3 == test3 list1 participant: test3 list2 participant: test4 list1 participant: test3 list2 participant: test5 list1 size: 5 list2 size: 5 list1 participant: test4 list2 participant: test1 list1 participant: test4 list2 participant: test2 list1 participant: test4 list2 participant: test3 list1 participant: test4 list2 participant: test4 These users matched test4 == test4 list1 participant: test4 list2 participant: test5 list1 size: 5 list2 size: 5 list1 participant: test5 list2 participant: test1 list1 participant: test5 list2 participant: test2 list1 participant: test5 list2 participant: test3 list1 participant: test5 list2 participant: test4 list1 participant: test5 list2 participant: test5 These users matched test5 == test5 userAlreayInList test1 userAlreayInList test2 userAlreayInList test3 userAlreayInList test4 userAlreayInList test5 tobeShure test1 tobeShure test2 tobeShure test3 tobeShure test4 tobeShure test5 --------------------------------Second feedback file Here is the console feedback when the Arraylist is filled with the loop you currently see in the code. Also tried to fill it with a simple loop with intergers, and then it has the same problem. list1 size: 0 list1 participant: [] list2 participant: [Barry Borsboom, Dennis Koks, Bob Karreman, Peter van Waard] user Barry Borsboom added user Dennis Koks added user Bob Karreman added user Peter van Waard added tobeShure Barry Borsboom tobeShure Dennis Koks tobeShure Bob Karreman tobeShure Peter van Waard ---------------------------Enters the second loop here list1 size: 4 list1 participant: [Barry Borsboom, Dennis Koks, Bob Karreman, Peter van Waard] list2 participant: [Barry Borsboom, Dennis Koks, Bob Karreman, Peter van Waard] list1 size: 4 list2 size: 4 list1 participant: Barry Borsboom list2 participant: Barry Borsboom list1 participant: Barry Borsboom list2 participant: Dennis Koks list1 participant: Barry Borsboom list2 participant: Bob Karreman list1 participant: Barry Borsboom list2 participant: Peter van Waard user 0 removed name= Barry Borsboom list1 size: 3 list2 size: 4 list1 participant: Bob Karreman list2 participant: Barry Borsboom list1 participant: Bob Karreman list2 participant: Dennis Koks list1 participant: Bob Karreman list2 participant: Bob Karreman list1 participant: Bob Karreman list2 participant: Peter van Waard user 1 removed name= Bob Karreman user Barry Borsboom added user Dennis Koks added user Bob Karreman added user Peter van Waard added tobeShure Dennis Koks tobeShure Peter van Waard tobeShure Barry Borsboom tobeShure Dennis Koks tobeShure Bob Karreman tobeShure Peter van Waard