Java While loop

In Java, while loop is a control statement that allows part of the program repeatedly based on a given condition is true.

Code :