Java gives you loop types. Picking the right one makes your code easier to read.
Use a for loop when you know the exact count upfront. Counting from to , iterating over array indices, repeating something times.
Use a while loop when you don't know how many iterations you'll need. Reading input until the user types "quit," retrying a request until it succeeds, or searching until you find a match.
Use a do-while loop when the body must run at least once. Showing a menu, or validating input (ask first, then check).
If you pick the wrong type, the code still works. But readers will waste time figuring out why you used a for loop that doesn't count, or a while loop where the count is obvious.