How to use Java while:
Using while loop
While loop:
The while loop is java’s most fundamental looping statement.It repeats a statement or block while its controlling expression is true.In while statement condition can be any boolean expression.
A website for basic tutorials and programs in Java. JAVA based tutorial programs.