if u copy-paste this into a java ide and write some commands in the loop, u`ll notice that the commands arent getting executed despite the loop requirement is fulfilled. its because u should use a method called "equals" like this instead of a comparison operator: