Skip to content

Tag: while-loop

How to find max number and occurrences

So I’m learn java for the first time and can’t seem to figure how to set up a while loop properly . my assignment is Write a program that reads integers, finds the largest of them, and counts its occurrences. But I have 2 problems and some handicaps. I’m not allowed to use an array or list because we haven’t

Tic Tac Toe runs and functions completely, but after getting 3 in a row, another move has to be made for it to end [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 months ago. Improve this question Is anyone of you able to find out why it loops around 1 extra time even though the while condition