ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Java Control Statements | Lec-3| If, If-Else, Else-If, Loops & Jumping stat | JavaWithVaibhavMastar

Автор: Java With Vaibhav Mastar

Загружено: 2026-02-05

Просмотров: 8

Описание: The video lecture is about Java control flow statements, covering decision-making statements and loops.

Control Statements:
Control statements are also called execution control flow statements.
Without control statements, the program executes line by line.
Control statements are a means of decision-making.
The speaker mentioned the use of if, else, and multiple conditions with else if.
Loops:
Loops are important.
The main purpose of loops is to decrease the number of lines of code.
Loops repeat a block of code again and again until a condition becomes false.
The components of a loop include initialization, condition, and increment/decrement.
Initialization means the starting point.
Condition means the ending point.
Increment/decrement means increasing or decreasing the value, or how to proceed.
Types of Loops Discussed:
For Loop: Used when the number of iterations or count is known.
Syntax includes initialization, condition, and increment/decrement within the for statement.
An example was used to print numbers from 10 to 20 using a for loop, demonstrating initialization with $I = 10$, condition $I \le 20$, and increment $I++$.
Another example was used to print a series starting at 2, ending at 20, with a difference of 3 (e.g., 2, 5, 8, 11, 14, 17, 20), using $I += 3$ for the increment/decrement.
While Loop: Used when the number of iterations is not known.
The condition and whether the loop becomes false is what the execution depends on.
Syntax: while (condition) followed by the code block, with initialization before the while and increment/decrement inside the block.
An example of an ATM withdrawal process was used to illustrate a situation where the count is unknown, and the loop continues as long as the balance is greater than zero.
Do-While Loop: Guarantees that the code block is executed at least once, even if the initial condition is false.
The do block executes first, and then the while condition is checked.
Jumping Statements:
These are used to jump to a different location in the flow of control.
Jumping statements include break, continue, and return.
Break: Used to stop the loop execution.
Continue: Used to skip the current iteration and proceed to the next.
Return: Used to return a value and exit the method.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Java Control Statements | Lec-3| If, If-Else, Else-If, Loops & Jumping stat | JavaWithVaibhavMastar

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Депортации из США: от американской до российской тюрьмы | Варламов — о депортациях русских

Депортации из США: от американской до российской тюрьмы | Варламов — о депортациях русских

3. CS50 на русском: Лекция #3 [Гарвард, Основы программирования, осень 2015 год]

3. CS50 на русском: Лекция #3 [Гарвард, Основы программирования, осень 2015 год]

Грозев — об отравлении Навального. У россиян украли миллиарды. Польша хочет себе ядерное оружие

Грозев — об отравлении Навального. У россиян украли миллиарды. Польша хочет себе ядерное оружие

Взломать за один промпт. Как OpenClaw открывает простор для киберпреступников

Взломать за один промпт. Как OpenClaw открывает простор для киберпреступников

DLACZEGO KGHM “ODDAŁ” ZŁOŻA MOLIBDENU NA GRENLANDII? | GOSPODARCZE ZERO

DLACZEGO KGHM “ODDAŁ” ZŁOŻA MOLIBDENU NA GRENLANDII? | GOSPODARCZE ZERO

Алгоритмы и структуры данных ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Графы, деревья, хеш таблицы и тд

Алгоритмы и структуры данных ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Графы, деревья, хеш таблицы и тд

Лекция от легенды ИИ в Стэнфорде

Лекция от легенды ИИ в Стэнфорде

Math & English Grammar | Class 8 - Live Class

Math & English Grammar | Class 8 - Live Class

ALE FART! Śnieżyca, smutek Niemców, SREBRO POLAKÓW! 🥈🇵🇱

ALE FART! Śnieżyca, smutek Niemców, SREBRO POLAKÓW! 🥈🇵🇱

Раскрытие 5 секретных фокусов с помощью науки ч.2

Раскрытие 5 секретных фокусов с помощью науки ч.2

Надоели файлы? Вот, пожалуйста, сокеты • C • Live coding

Надоели файлы? Вот, пожалуйста, сокеты • C • Live coding

Губка Боб | Лучшее из 2 и 3 сезонов Губки Боба! 🧽 | 2 часа | Nickelodeon Cyrillic

Губка Боб | Лучшее из 2 и 3 сезонов Губки Боба! 🧽 | 2 часа | Nickelodeon Cyrillic

Подготовка к выпускному экзамену CS201 2026 || Тесты с множественным выбором по CS201 2026 || Тек...

Подготовка к выпускному экзамену CS201 2026 || Тесты с множественным выбором по CS201 2026 || Тек...

Genialny fizyk: „Prawa fizyki dowodzą, że AI jest z natury zła”!

Genialny fizyk: „Prawa fizyki dowodzą, że AI jest z natury zła”!

Озвучены условия прекращения огня | Интервью Дмитрия Медведева (English subtitles) @Максим Кац

Озвучены условия прекращения огня | Интервью Дмитрия Медведева (English subtitles) @Максим Кац

Интернет по паспорту и блокировка Телеграм с 1 марта

Интернет по паспорту и блокировка Телеграм с 1 марта

Редакция News: 208-я неделя

Редакция News: 208-я неделя

Koniec z zakupami w USA? Tusk wsadza Polskę do niemieckiej klatki zbrojeniowej  | A. Klarenbach

Koniec z zakupami w USA? Tusk wsadza Polskę do niemieckiej klatki zbrojeniowej | A. Klarenbach

VS Code ПОЛНЫЙ курс + настройка (интерфейс, плагины, работа с кодом)

VS Code ПОЛНЫЙ курс + настройка (интерфейс, плагины, работа с кодом)

Nowa partia Ryszarda Petru z niedobitków PL2050, kolejne polityczne kuglarstwo, bądźmy czujni

Nowa partia Ryszarda Petru z niedobitków PL2050, kolejne polityczne kuglarstwo, bądźmy czujni

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]