It's UWAweek 24 (1st semester, 2nd exam week)

help2005

This forum is provided to promote discussion amongst students enrolled in CITS2005 Object Oriented Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 8 articles in this topic
Showing 8 of 257 articles.
Currently 1 other person reading this forum.


 UWA week 21 (1st semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
11:31am Wed 22nd May, ANONYMOUS

How can I effectively handle NoSuchElementException in the reverseNext method of my StudentListIterator implementation, particularly when there are no more elements to return? Additionally, could someone guide us on implementing retry logic to handle QueryTimedOutException, ensuring that an ApiUnreachableException is thrown after exceeding the retry limit?


SVG not supported

Login to reply

👍?
helpful
11:41am Wed 22nd May, Andrew G.

ANONYMOUS wrote:
> How can I effectively handle NoSuchElementException in the reverseNext method of my StudentListIterator implementation, particularly when there are no more elements to return?
I encourage you to read the documentation on `Iterator` and `NoSuchElementException` to understand when they are used. If you are not comfortable with the concept of exceptions you may also need to review the slides.
> Additionally, could someone guide us on implementing retry logic to handle QueryTimedOutException, ensuring that an ApiUnreachableException is thrown after exceeding the retry limit?
The purpose of the project is to take a problem specification and figure out how to build that using Java, so it is not reasonable to provide you guidance on how to implement it. I will attempt to leave you with hints to help you reason about the problem yourself. Pretend that you were managing retries by hand. When attempting to get a page, consider the possibilities: You could either successfully retrieve the page, or the query could fail. What do you then need to do in each of these cases? Imagine some scenarios where the query fails a different number of times before eventually succeeding (or where it never succeeds). The strategy for how to handle this is very simple and you should be able to figure it out yourself working through the process. Once you are comfortable with your understanding of the strategy, then your task is to write Java to implement that strategy.


SVG not supported

Login to reply

👍?
helpful
7:24pm Wed 22nd May, ANONYMOUS

Hi, I have been struggling to fix the below error, can you please point out where I'm going wrong? testIteration: ERROR: expected 20948682, received 20948678 Cheers!!!


SVG not supported

Login to reply

👍?
helpful
9:48pm Wed 22nd May, Jigneshvar R.

Im a bit confused on what is meant as a double ended iterator in this context. From my understanding do we alternate between the reverseNext and next function. I've been stuck don't this for two days and have not made much progress.


SVG not supported

Login to reply

👍?
helpful
9:53pm Wed 22nd May, Jigneshvar R.

sorry i meant the reverseNext and Next calls.


SVG not supported

Login to reply

👍?
helpful
9:38am Thu 23rd May, Jigneshvar R.

Nevermind i understood the pseudocode.


SVG not supported

Login to reply

👍?
helpful
12:55pm Thu 23rd May, Andrew G.

"Jigneshvar Ramasamy" <23*2*5*3@s*u*e*t*u*a*e*u*a*> wrote:
> Nevermind i understood the pseudocode.
What pseusodcode?


SVG not supported

Login to reply

👍?
helpful
9:04am Fri 24th May, Jigneshvar R.

Sorry i meant i understood the logic behind how to implement the double ended iterator for task 8 which I wrote a planned pseusodcode for

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy