JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Success stories
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • IDEA life hacks for Kotlin

    Kotlin SELF
    14 level,0 lecture
    Autocomplete, templates, and refactoring. IntelliJ IDEA is Kotlin’s native home. Learn how to write code at the speed of thought using Tab, Live Templates, Postfix Completion, and formatting hotkeys.
    Open
  • Input utilities: prompt → parsing → T?

    Kotlin SELF
    14 level,1 lecture
    We break down how to turn input in a console program into neat utilities: move the prompt ( prompt) into a parameter, read a line via readln(), safely parse values via toIntOrNull()/ toDoubleOrNull(), and return types like Int?/ Double?. At the script level, we learn to work with nullable values using the Elvis operator ?: and early exit with run { ...; return }, keeping the “happy path” flat and readable.
    Open
  • Clean parsing without input: parse…OrNull

    Kotlin SELF
    14 level,2 lecture
    We break down how, in Kotlin, to separate input from data conversion: we build “silent” functions of the form String → T ?, normalize strings with trim() and lowercase(), write parsers parseIntOrNull, parseDoubleOrNull, parseYesNoOrNull, and then neatly “glue” them to console input. At the end, there’s a mini questionnaire scenario and a list of common mistakes.
    Open
  • Validation as a separate layer: ranges, “not empty”, returning T?

    Kotlin SELF
    14 level,3 lecture
    We break down the “validation as a separate layer” approach: how parsing ( String → T?) differs from rule-checking ( T → T?), why it’s convenient to signal an error via null, how to check ranges with in and min..max, and how to validate strings as “not empty” after trim(). At the end — the composition readln() → toIntOrNull() → validator, and a list of typical mistakes.
    Open
  • Preconditions and fail-fast: require/check and guard clauses

    Kotlin SELF
    14 level,4 lecture
    We break down the fail-fast style in Kotlin: how to separate expected data errors (return null and handle it in the scenario) from programmer errors (stop via require()/ check()). Using practical input and validation utilities, we will show the difference between IllegalArgumentException and IllegalStateException, learn to write good messages, and rewrite the “pyramid” of nested if into linear code with guard clauses (early return).
    Open
  • Building a Mini Input API Without Duplication

    Kotlin SELF
    14 level,5 lecture
    We break down how to assemble a small and honest set of input functions for Kotlin console programs: we extract repeated steps ( prompt, trim(), safe parsing via toIntOrNull()/ toDoubleOrNull(), range validation), introduce naming conventions ( read…, parse…, validate…, the OrNull suffix), show “building-block” composition, and write a readable main() as a script without copy-paste.
    Open
  • Debug in IntelliJ IDEA

    Kotlin SELF
    14 level,6 lecture
    How to find a bug without losing your mind. Learn to use the Debugger: breakpoints, step-by-step execution, inspecting variables, and evaluating expressions on the fly.
    Open
Learn
  • Registration
  • Java course
  • Help with tasks
  • Pricing
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success stories
  • Activities
Company
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
JavaRushJavaRush — is an interactive online course for learning Java programming from scratch. It contains 1200 practical tasks with one-click solution checking, the necessary minimum of theory on Java basics, and motivating features that help you complete the course: games, quizzes, interesting projects and articles on effective learning and the career of a Java developer.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush
MastercardVisa
"Programmers are not born" © 2026 JavaRush