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
  • Learning to Program with CodeGym

    Kotlin SELF
    Level 6, Lesson 0
    Find out how CodeGym turns learning programming into an exciting adventure: interactive tasks, instant feedback, community support, and tons of practice. Here you do not just study — step by step, you become a real developer, gaining the knowledge and experience you need to start a career in IT!
    Available
  • Getting to Know Fractional Numbers: Double and Float

    Kotlin SELF
    Level 6, Lesson 1
    In this Kotlin lecture, we’ll figure out why we need floating-point numbers, what the difference is between Double and Float, why a literal with a decimal point most often becomes a Double, why Float requires the f suffix, how Int divided by Int works, and what scientific notation like 1e-3 means. At the end — common mistakes that make the fractional part “disappear”.
    Available
  • Double precision: epsilon comparison, NaN, and Infinity

    Kotlin SELF
    Level 6, Lesson 2
    In this Kotlin lecture, you will understand why the expression 0.1 + 0.2 is not required to produce exactly 0.3, why comparing Double values with == is a trap, how epsilon comparison using abs works, and what the special values NaN and Infinity are, how to check them with isNaN and isInfinite, and how to protect calculations from being “contaminated” by non-numeric results.
    Available
  • Rounding floor/ceil/round and how it differs from toInt()

    Kotlin SELF
    Level 6, Lesson 3
    In this Kotlin lecture, you will learn how the rounding functions from the kotlin.math package work — floor, ceil, round — why they behave differently for negative numbers, what “round half to even” (banker’s rounding) means, and how mathematical rounding differs from type conversion via toInt(). At the end, you’ll find practical techniques, a comparison table, and common mistakes.
    Available
  • Random — generating random Int and Double

    Kotlin SELF
    Level 6, Lesson 4
    In this Kotlin lecture, you will learn how to generate pseudorandom values via kotlin.random.Random: get random Int and Double, set correct bounds in Random.nextInt ( from inclusive, until exclusive), scale nextDouble to the desired range, and round the result for “human-friendly” output. At the end — a mini-project LuckyCafe and a list of common mistakes.
    Available
  • Type conversions and working with Char

    Kotlin SELF
    Level 6, Lesson 5
    In this Kotlin lecture, we will break down why numeric type conversions are almost always explicit, how the methods toInt(), toDouble(), toFloat() work, why conversions like Double → Int can be dangerous, and how the Char type is structured: the code property, conversion via toChar(), working with digits '0'.. '9', and a mini-scenario for generating a coupon.
    Available
  • IT Product Development

    Kotlin SELF
    Level 6, Lesson 6
    In this lecture, you will learn how the IT product development process works: what roles exist on a team, how they interact, what Product Owners, UX Designers, DevOps specialists, and developers do, and you will also get acquainted with the history of how approaches to creating modern digital services have evolved.
    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