CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • The future has arrived

    Kotlin SELF
    Level 4, Lesson 0
    In this inspiring article, you’ll learn how technology has changed our lives in the 21st century: from smartphones and the internet to VR and online education. We’ll talk about the opportunities the modern world opens up—and why it’s important not to miss your chance to use them. Read a parable about choice and action—and take a step into the future today!
    Available
  • Getting to know the while loop

    Kotlin SELF
    Level 4, Lesson 1
    In this lecture, you will break down the while loop in Kotlin: the mental model (“while the condition is true—do it”), key patterns (counter, sum accumulation, finding the maximum), reasons for infinite loops and how to spot them quickly, as well as a practical scenario for robust input with toIntOrNull (). At the end, we will reinforce the material with a mini app and go over common mistakes.
    Available
  • Alternative do-while loop

    Kotlin SELF
    Level 4, Lesson 2
    In this lecture, we go over the alternative do-while loop in Kotlin: how it differs from while, why it guarantees at least one iteration, how to avoid duplication when re-entering input, where to declare variables for the condition, and how to write readable checks. At the end, there’s a set of common mistakes and ways to avoid them.
    Available
  • for: ranges a..b and iterating over string characters

    Kotlin SELF
    Level 4, Lesson 3
    In this Kotlin lecture, you will learn why the for loop is more convenient than while when iterating over ready-made sources of values. You will learn to use ranges a .. b (including the boundaries), descending ranges via downTo and step size via step. You will also master iterating over a string character by character ( Char) and counting spaces/digits. At the end, you will reinforce the material with typical mistakes and criteria for choosing between while, do-while, and for.
    Available
  • Loop control: break and continue

    Kotlin SELF
    Level 4, Lesson 4
    In this lecture, we will go over how to control loop execution in Kotlin using the break and continue operators: when to end a loop early, how to skip individual iterations, why continue in while can lead to an infinite loop, and how to write code so that exit and skip points are obvious when reading.
    Available
  • Nested loops: tabular patterns, search, and labels

    Kotlin SELF
    Level 4, Lesson 5
    In this Kotlin lecture, you will learn about nested loops: how they run, how to build tabular output (coordinate grid, rectangle, frame, mini multiplication table), how to correctly stop a search inside nested loops (the break trap, the strategy with a found flag), and how to use labels with break @ outer and continue @ outer. At the end, you’ll see common mistakes and quick self-check techniques.
    Available
  • CodeGym Kotlin 2.3 Course

    Kotlin SELF
    Level 4, Lesson 6
    CodeGym’s history, CodeGym’s international expansion, the launch of CodeGym University, and the announcement of the modern Kotlin Software Engineer course on Kotlin 2.3.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym