Showing posts with label Java-while loop. Show all posts
Showing posts with label Java-while loop. Show all posts

Java while loop / Chapter -3/Flow Control



javabychetan.blogspot.com


Iterative Statement:-
This is the second part of the flow control.

a.) while loop:-
If we don't know no. of iteration in advance then we should go for the while loop.

Syntax:-


while(b)
{
where b should be boolean type
Action
}


1. The arguments should be the boolean type. If we are trying to provide any other type then we will get compile time error.

Example:-

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com