While Loop and Do while loop in Java simplified | Java tutorials for Beginners

Опубликовано: 18 Октябрь 2024
на канале: Amarindaz
37
0

In this video, we are going to learn While loop and Do while loop in java.

While Loop:
In Java, while loop is most commonly used to iterate part of a program many times. If you are not sure about the number of iteration, then you can go for while loop in java. If you know the number of iteration, it is recommended to use FOR loop in java

Syntax of While Loop:
while(condition)
{

//Program to be executed
}

Do..While In Java:
In Java, Do.. while loop is most commonly used to iterate part of a program many times. If you are not sure about the number of iteration and if you want to execute the code within the loop for at least one time, then you can go for Do..while loop in java

Syntax of Do..While Loop:

do{
//program to be executed
}while(condition)

********* Tutorial Playlists *********
Google apps script tutorial for beginners- https://bit.ly/google-apps-script-tut...
Automate internet explorer with VBA- https://goo.gl/Xmy8Af
Autoit tutorials for beginners- https://goo.gl/JHB1E2
Selenium Webdriver tutorials for beginners -https://goo.gl/QqxTrF

***** Contact me *******
Blog: http://www.amarindaz.com/contact/
FB page:   / amarindaz  

****** Books written by me *******
Autoit tutorials for beginners: http://amzn.to/2GjaDbD
Excel VBA for beginners: http://amzn.to/2nhI067

****** Productivity tool ********
My Favorite YouTube Tools ➜ https://goo.gl/MX9Z4p and ➜https://goo.gl/UW1uRX

****** Gear Used To Shoot This Video *****
_Audio & Microphone
http://amzn.to/2GibdGu

*******Learning partner*******
Video courses ➜https://click.linksynergy.com/fs-bin/...

Don't forget to subscribe! https://goo.gl/J2453w

💼 To Hire Me 👉 https://fwd.cx/WLGgpTiZW5HK

Checkout my app 👉 https://www.myfreshtools.com