what you could do is something like the following.
this should be kind of what you are looking for.
this will compare each item in the firstlist with the same
corresponding index as the second.
if you want to search the whole second list for the i'th
value in the firtlist, you'll need to implement a nested
search.
and by the way, the ArrayList.get(index) returns an object, thats
why I casted.
I strongly recommend that you use the API provided on suns website, it
helps out a whole lot.
click here for the arraylist on javas site Justin Fox