Java Supports the following :
for(initialization condition; testing condition; increment/decrement){ statements(s)}
for(initialization condition; testing condition; increment/decrement)
{
statements(s)
}
for (type var: array){ statements(s)}
for (type var: array)
while( condition){ Statements}
while( condition)
Statements
do{ statement(s)}while
do
statement(s)
}while
for a detailed tutorial on Java Control and Loop statements please visit https://www.c-sharpcorner.com/article/java-loops-and-control-statements/
Hey User, Java Supports different types of Loop like-1:- While Loop. 2:- Do while Loop. 3:- For Loop. 4:- Foreach Loop.