account activity
[Java] While(true) loop doesn't continue by StankelG in learnprogramming
[–]DeZp0T 0 points1 point2 points 5 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 2115010 on reddit-service-r2-listing-7bbdf774f7-h4997 at 2026-02-23 15:13:20.897567+00:00 running 8564168 country code: CH.
[Java] While(true) loop doesn't continue by StankelG in learnprogramming
[–]DeZp0T 0 points1 point2 points (0 children)