MASTER one of the Programming BASICS, WHILE, DO/WHILE and FOR LOOPS with ANDROID KOTLIN! Want to learn everything about Kotlin? Get this! • Android Complete Course
Here are the links by the way!
Free download. https://page.tutorials.eu/android
Our Android Masterclass. https://bit.ly/3l6vG86
while and do-while loops execute their body continuously while their condition is satisfied. The difference between them is the condition checking time:
while checks the condition and, if it's satisfied, executes the body and then returns to the condition check.
do-while executes the body and then checks the condition. If it's satisfied, the loop repeats. So, the body of do-while executes at least once regardless of the condition.
The for loop iterates through anything that provides an iterator. This is equivalent to the foreach loop in languages like C#.
The body of for can be a block.
As mentioned before, for iterates through anything that provides an iterator. This means that it
· has a member or an extension function iterator() that returns Iterator
· has a member or an extension function next()
· has a member or an extension function hasNext() that returns Boolean.
All of these three functions need to be marked as operator.
To iterate over a range of numbers, use a range expression
A for loop over a range or an array is compiled to an index-based loop that does not create an iterator object.
Alternatively, you can use the withIndex library function
#android #kotlin #code #programming #tutorials #learn #tutorial #tutorialseu
tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU: https://goo.gl/rBFh3x
Android: / @tutorialseuandroid
C#: / @tutorialseuc
Unity: / @tutorialseuunity
Facebook: / tutorialseu-109380204093233
LinkedIn: / tutorialseu
Discord: / discord
Auf dieser Seite können Sie das Online-Video Master WHILE, DO/WHILE and FOR LOOPS in ANDROID KOTLIN with THIS mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer tutorialsEU - Android 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 648 Mal angesehen und es wurde von 26 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!