While loop is not working in processing

I am learning processing from coding train channel which mention in the first video.