Compare two arraylists with date values

  • Thread starter Thread starter godsella
  • Start date Start date
G

godsella

First i have two stored procedures, i have passed the values of each
one into two different arraylists of dates. how can i compare the two
arraylists of dates?

Thanks in advance
 
godsella,

How do you want to compare them? You want to see if they are the same?
If that's the case, I would check the lengths of each of them. If they are
not the same, then they do not match. If they are the same, sort each list,
and cycle through the lists, checking the dates at each index. If any of
them do not match, then stop the operation, as they do not match.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top