✔ How To Use A Java Do-While Loop | (Video 27) смотреть онлайн
The Do-While Loop and While Loop are different because of their condition. A Do-While’s condition is located at the bottom of its loop. Therefore, the statement is executed at least once before determining if the condition is true or false. If the condition is true then the statement continues executing but will not continue if the condition is false.
Here’s a list of Java’s Loop Statements:
1. For Loop = https://tinyurl.com/Video-For-Loop
2. While Loop = https://tinyurl.com/Video-While-Loop
3. Do While Loop = https://tinyurl.com/Video-Do-While-Loop
► View All Videos On YouTube = https://tinyurl.com/YT-Selenium-4-Beginner-Videos
► View All Videos On LinkedIn = https://tinyurl.com/LI-Selenium-4-Beginner-Videos
► View All Videos On Facebook = https://tinyurl.com/FB-Selenium-4-Beginner-Videos
► Link to download the Transcript, Presentation, and Code =
https://tinyurl.com/Java-Loop-Statements
► Free Selenium PDF Book: https://www.rexjones2.com/book-selenium-4-beginners/
► Free Java PDF Book: https://www.rexjones2.com/book-part-1-core-java/
► All Paperback & eBooks: http://tinyurl.com/Rex-Allen-Jones-Books
► Increase Video Quality: Settings - Quality - Select HD
► CC Font Size: Settings - Subtitles/CC - Options - Font Size
► Turn CC On or Off: Click CC
► Transcript
Let’s demo the Do-While Loop.
Write 2 print statements sysout “Start Do-While Loop“ and sysout “Stop Do-While Loop”.
Initialize the loop variable by writing int y = 0. Next write the keyword do which begins the syntax, CTRL + SPACE, and select the do-while statement. I’m going to add sysout “y = ” + y within the brackets then y ++ as the iteration so the loop can stop.
The while condition is written after the loop’s body. We want to execute the body while y is less than or equal to 20. The Do-While Loop will execute the print statement at least one time before checking if the condition is true or false. If the condition is false then the body execute one time. I’m going to make the condition false by changing the starting value from 0 to 100.
Here’s the breakdown. The do keyword starts the loop, executes the print statement by printing y = 100. It’s only supposed to execute while y is less than or equal to 20 so this statement will not execute anymore. Let’s run. We see the do-while loop start and execute y = 100 one time before stopping.
Change 100 back to 0 then Run. y starts at 0 and stops at 20.
We set the value to 0, started the loop by writing keyword do, added a print statement for execution, incremented the value by 1 then check for a condition while y is less than or equal to 20.
#SeleniumTraining #SeleniumAutomation #BeginnerSeleniumTutorials #SeleniumWebDriver
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «✔ How To Use A Java Do-While Loop | (Video 27)» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.