Kotlin TutorialLesson 5Free preview
Kotlin Output
This lesson is part of Kotlin · All levels
Summary
This lesson explains the output function for displaying text or data to the console in Kotlin. There are two main functions: print() and println(). Beginner developers will understand when to use new lines and how to combine text printing with expression calculations.
Key points
- The 'println()' function prints text and automatically adds a new line after it
- The 'print()' function prints text on the same line without the new line character
- Supports printing of various data types from String, Int, to Boolean
- Can print the results of the evaluation of arithmetic expressions directly
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.