Are you serious? Are you getting an error? What is it you want us to look for?
Also, please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
And, please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine. You can change your subject line by clicking the button on your post.
1) have you read the API for the ResultSet next() method?
2) what do you think the error means?
The ResultsSet class behaviour for cursors and the use of the 'next' method is important but not too difficult a concept. It is however something you'll need to look up and understand.