Browse topics
Kotlin Basics
Kotlin Input and Output
Read input and print output in Kotlin, including the Scanner class.
Kotlin Input And Outputprint and println Data Output in KotlinIn Kotlin, print() function to print output on the screen or standard output. A Kotlin example with source code and sample output.Kotlin Input And OutputPrinting Variables and Values in KotlinPrinting Variables and Values explained in Kotlin, with a complete example program, its sample output, and a clear code walkthrough.Kotlin Input And OutputRead Data Input from Command Line in KotlinWhile compiling and running a Kotlin Program through the command line, the user input can be passed along with the command to run the program.Kotlin Input And OutputRead Data Input using Scanner in KotlinKotlin uses java.util.Scanner class to scan user inputs. A Kotlin example with source code and sample output.Kotlin Input And OutputRead String Data Input in KotlinIn Kotlin, readLine() reads a line of input from the standard input stream or screen. A Kotlin example with source code and sample output.
Related topics
Basic Programs Get started with Kotlin: your first program, variables, and comments. Kotlin Data Types Explore Int, Float, Double, Char, Boolean, String and more, with type conversion. Kotlin Operators Arithmetic, relational, logical, assignment and Kotlin's special operators. Conditional Statements Control program flow with if, when, break, continue and return. Looping & Controls Repeat work with for, while, do-while and the repeat function. Kotlin Functions Define functions with default, named and vararg parameters, single-expression, local, tailrec and infix functions.