Saurabh,
Who changes the contents of that arraylist, I assume the program where you
have control from.
When the problem is that you have it as a global and change it in to much
places, than I would advice you to redesign your program a little bit.
By instance when you set it in a seperate shared class, you can use the
property that sets your arraylist to do the break as you describe it.
I hope this gives an idea.
Cor
"Saurabh Kumar" <au@sd.com>
can i make my program to automatically break when the contents of an
arraylist/queue change?
if yes, how?