79573748

Date: 2025-04-14 17:53:12
Score: 1
Natty:
Report link

When you are unsure about what condition to put in while loop but you just want a harmless loop and the condition you want to stop is inside the loop (which consists of either break or return, in java), then you can use while(true). So while(true){} basically keeps looping until any condition to exit the loop is met inside the loop, or else it will keep looping infinite times.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you are
  • Low reputation (1):
Posted by: 454_RUCHA PHADKE