Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Iterations and Loops in Kotlin

via CodeSignal

Overview

Explore Kotlin's loop mechanisms to streamline repetitive operations in your code. Understand the syntax and practical applications of 'for', 'while', and 'do-while' loops. Master controlling program flow effectively with these looping constructs for optimal code efficiency.

Syllabus

  • Lesson 1: Exploring For Loops in Kotlin: A Beginner's Guide
    • Iterate School Activities with For Loop
    • Adjust the Range in the For Loop
    • Correct the Pencil Print Loop
    • Populate the For Loop in Kotlin
    • Classroom Items Looper
  • Lesson 2: Kotlin While Loops: Embracing Repetition with Control
    • Simulating Egg Boiling with While Loop in Kotlin
    • Reverse Cookie Baking Counter Task
    • Cookie Baking Program Troubleshooting
    • Baking Cookies Loop Challenge
    • Baking a Dozen Cookies Using While Loop in Kotlin
  • Lesson 3: Combining Loops with Conditional Logic in Kotlin
    • Flight Range Checker in a Booking System
    • Update Flight Booking System to Acknowledge VIP Passengers
    • Debug the Aircraft Booking System
    • Count Affordable Flights in Kotlin
    • Manage Flight Bookings with Kotlin Loops and Conditions
  • Lesson 4: Mastering Simple Nested Loops in Kotlin
    • Creating a Checkerboard Pattern with Nested Loops
    • Upgrade the Board Game Grid to 4x4
    • Board Game Grid Display Fix
    • Add the Inner Loop to the Board Game Grid Initializer
    • Create a Board Game Grid with Nested Loops in Kotlin
  • Lesson 5: Controlling Kotlin Loops with Break and Continue Keywords
    • Sorting the Library Shelves
    • Skip the Unwanted Book in the Library Search Loop
    • Resume the Book Sorting Process
    • Add a Loop Break Condition in the Book Sorting Program
    • Kotlin Bookshelf Sorter

Reviews

Start your review of Iterations and Loops in Kotlin

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.