Getting Started with Java
This is a 100% free course, but we need you to first join or login to watch this video.Alright, join or login here.
This video shows you you how to use the while loop in Java. Specify some condition on the basis of which you want to keep executing a bunch of statements several times over. Beware of the infinite while loop. The while loop can be used anywhere a for loop can and is generally used when you want to execute some code till a condition is satisfied and you don’t know how many iterations it will take to satisfy the condition.