Whenever a loop stops based on user input, data arriving, or convergence rather than a fixed counter, while and do-while fit best. Knowing when to test the condition before or after the first iteration keeps menus and validation clean.
More lessons in Complete Core Java