This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
HI , See the below code, I am comparing two arraylist values and getting the correct result while comparing equal. in bello example I took the values ArrayList a1=a,b,c,d,e and ArrayList a2=a,b,c. If I compare a1==a2 result : a,b,c is comming correctly. if I try to compare not equal position ,I want to get the data d,e. If any body know please modify the code and send me back.
The code produces what you want and a little more, what it should do is take any two arraylists check which one has more elements in it. Go through both for the amount of elements in the smallest, comparing element for element between the arrays and displaying the ones which don't match.
Then goes through the remainder of the larger array and displays all since obviously there isn't a match because the smaller array has no elements for that range.
Next time, instead of asking for all the code perhaps you should ask for advice, better if you do it yourself, then you actually learn something.