Learn Kotlin
Learn Kotlin, the modern language for Android and the JVM. Store data in variables, work with text and numbers, make decisions, use lists, sets and maps, repeat with loops, write functions and lambdas, and model things with classes.
- Beginner level
- 7 modules
- 45 lessons
- 217 tasks and questions
Syllabus
01Introduction to KotlinMeet Kotlin, write your first program with a main function, print output and add comments.5 lessons
02Data Types and VariablesStore values with val and var, learn Kotlin's basic types, build text with string templates and string functions, and calculate with numbers and the math library.11 lessons
03Conditional ExpressionsMake decisions with if and else, combine conditions with comparison and logical operators, test ranges, and choose between many cases with when.7 lessons
04CollectionsStore groups of values in lists, sets and maps, choose between read-only and mutable versions, and use their most important properties and functions.5 lessons
05LoopsRepeat code with for loops over ranges and collections, while and do-while loops, and control them with break, continue and labels.6 lessons
06FunctionsOrganize code into functions with parameters, return types, default and named arguments, single-expression bodies, lambdas and recursion.6 lessons
07ClassesModel real things with classes: properties, constructors, init blocks, member functions and data classes.5 lessons