This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Since you care about order, some interesting approaches come up. If they are SORTED this works nicely:
For lists that are NOT sorted, I have an old Pascal program that looks ahead a certain distance (could be to the end on arrays) to decide which one has elements that are not in the other.
Late breaking thought: My Text Diff program compares arrays of strings, more or less.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Jul 31, 2001
Thanks for the replies. The equals method on the Arrays class was what I needed. I had looked at the Arrays class prior to posting this question but for some reason overlooked the equals method at that time.