Java 101 Part 2, Strings, For, While, Do While Loops

preview_player
Показать описание
In this #tutorial in my #java 101 series I discuss strings - how to find sub strings and how to print the first and last character of a string. I then move on to discussing loops - for loops, while loops, and do while loops. I show how I can declare an iterator inside and outside the for loop and the difference of the implications of each. I then show you how to trigger and avoid an infinite loop while using a while loop. Finally I show you how a do while loop will always run once, even if the condition to be met is not true.
Рекомендации по теме