Page 1 of 1

[Java Programming] Hi guys, can you take a look at my code ? I've trying to do this question and seeing other ppl's code

Posted: Sat Nov 27, 2021 10:34 am
by answerhappygod
[Java Programming]
Hi guys, can you take a look at my code ? I've trying to do this
question and seeing other ppl's code as well but it seems like my
code and other people's code not working as expected as well. I
tried asking some ppl at stackoverflow too and applied the solution
to my code. It does help and make my code works, but still there
are some part of the code that didn't run. My 'else' branch seems
to not be executed. I've been trying to go back and forth for this
question for almost 2 days but still no answer. Some ppl suggested
me an answer but the solution that the person was giving was more
advanced to what I've expected and what I've learned so far. I have
been learning java only for about 3 weeks. So that explains the
situation. Here is my code.

__________________________________________________________________________________
_______________________________________________________________________________________________
For your information the following link shows the initial
question that is in the website.
I can't seem to get right on question number 3. Please help ! Thank
you so much.

https://ibb.co/bdtSJv8
https://ibb.co/vd5H2xG
https://ibb.co/B6Xn6DD
https://ibb.co/KFdXY9j
https://ibb.co/x2X2MPP