Iteration Statements in java

Java’s iteration statements are for, while, and do-while. These statements create what we commonly call loops while The while loop is Java’s most fundamental loop statement. It repeats a statement or block while its controlling expression is true while(condition) {// body of loop} The condition can be any Boolean expression. The body of the loop … Read more