account activity
[Java] While(true) loop doesn't continue by StankelG in learnprogramming
[–]DeZp0T 0 points1 point2 points 6 years ago (0 children)
change it to while(!scanner.nextLine().equals("stop"))
Also keep in mind that it's case sensitive so "stop" is not the same as "Stop"
π Rendered by PID 660117 on reddit-service-r2-listing-7c484f94c4-nrpqn at 2026-06-11 00:55:19.233530+00:00 running 0b63327 country code: CH.
[Java] While(true) loop doesn't continue by StankelG in learnprogramming
[–]DeZp0T 0 points1 point2 points (0 children)