What are the answers to B and C?
Are you aware that the answers to all of the self-checks are available on the publisher's website? (The link has been on Moodle all term.)
https://www.buildingjavaprograms.com/self-check-solutions-3ed.html#ch05
Or did you want someone to give a more detailed description about how to get the answer, instead of just asking what the answer is?
I new the answer was the loop goes infinitely but i didn't know how to put in the answer because when i put in infinite loop it still said i was wrong. I just figured out the answer should have been just infinitely. Thanks!