That will be a good idea. Later when you understand a little more you could use chaining, but it really doesn't save much.
Type: Posts; User: Norm
That will be a good idea. Later when you understand a little more you could use chaining, but it really doesn't save much.
The iterator should work. The problem was the extra call to next() after the Product object with the desired id was found. return the p object with the matching id, don't get another one after the...
Here is what the code is doing. Say its searching for a record with id=2
read id=1 no match
read id=2 match
read id=3 and return this one
Is that what you want the code to do? Or do you want...
What is the relationship of the items in the list between the Product with the id == searchId
and the following item in the list that is being returned?
For example if the item at location x in the...