Hi Friend, I have a collection of object, I need to reiterate it max 3 times or less (if collection size is less than 3).
I wrote code like this but I am getting error in end field should be integer. Can some one throw light how to do it. Please let me know if this code is right or I can do it another way.
You don't have to worry about a case where the size of the collection is smaller than 3. If the end of the collection is reached, the iterator will stop regardless of whether it has reached the end index.