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
  • Artificial Intelligence: A New Technological Revolution

    Kotlin SELF
    Level 3, Lesson 0
    In this lecture, you will learn how artificial intelligence is changing the economy and the labor market, why the AI revolution is an opportunity for everyone, and how programmers are becoming key players in the new era. Real-life examples, fresh industry news, and advice on how not to be left behind by change.
    Available
  • Conditional statement: if else

    Kotlin SELF
    Level 3, Lesson 1
    The conditional statement in Kotlin lets you control program branching: it executes different blocks of code depending on whether the condition is true. In this lecture, we cover the syntax of if/ else, command blocks {}, the shortened form without else, the else if chain, a table of comparison operators, and nuances of comparing strings via == in Kotlin.
    Available
  • Nested if, multi-level logic

    Kotlin SELF
    Level 3, Lesson 2
    We break down multi-level logic in Kotlin using nested conditions: how a nested if works, why it’s important to carefully write else branches and curly braces {}, how to add alternatives via else if, and how to apply this in practice — with examples using input via readln().
    Available
  • Boolean logical type and logical operations

    Kotlin SELF
    Level 3, Lesson 3
    We break down the Boolean logical type in Kotlin: the values true and false, comparison operations ( ==, !=, >=, etc.), logical operators &&, ||, !, truth tables, and the short-circuit practice that helps you write safe conditions (for example, without dividing by zero).
    Available
  • Operator precedence and parentheses in conditions

    Kotlin SELF
    Level 3, Lesson 4
    Let’s break down operator precedence and associativity in Kotlin: what is evaluated first in expressions with && and ||, how parentheses change the meaning of a condition, and why mixing arithmetic and comparisons without parentheses often leads to “almost invisible” logical errors.
    Available
  • if as an expression in Kotlin: assigning the branching result

    Kotlin SELF
    Level 3, Lesson 5
    In Kotlin, the if operator can be used as an expression: you can assign the chosen result to a val without extra vars. We’ll cover the basic syntax, why else is required when assigning, how block branches work (the value is the last expression), what an else if chain looks like, and we’ll build a practical mini-program, a “discount checkout”, using readln(), trim(), and toIntOrNull().
    Available
  • CodeGym Courses Overview

    Kotlin SELF
    Level 3, Lesson 6
    In this overview, you will learn how CodeGym’s self-paced and university-style courses are structured: how they differ, which learning formats are available, what the curricula include, how student support works, and how to choose the right path to start an IT career. Lots of practice, real reviews, and tips for beginners!
    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