Kt. Academy Logo
WarsztatyKsiążkiArtykułySklep

Kotlin Essentials

Our special learning place

What is Kotlin?
Your first program in Kotlin
Exercise: Your first program
Variables
Basic types, their literals and operations
Exercise: Basic values operations
Conditional statements: if, when, try, and while
Exercise: Using when
Exercise: Pretty time display
Functions
Exercise: Person details display
The power of the for-loop
Exercise: Range Operations
Nullability
Exercise: User Information Processor
Classes
Exercise: Implementing the Product class
Inheritance
Exercise: GUI View Hierarchy Simulation
Data classes
Exercise: Data class practice
Objects
Exercise: Pizza factory
Exceptions
Exercise: Catching exceptions
Enum classes
Exercise: Days of the week enum
Sealed classes and interfaces
Annotation classes
Extensions
Exercise: Conversion and measurement unit creation
Collections
Exercise: Inventory management
Operator overloading
Exercise: Money operations
The beauty of Kotlin’s type system
Exercise: The closest supertype of types
Generics
Exercise: Stock