Standard input

Edit pageLast modified: 25 September 2024

To read from the standard input, Java provides the Scanner class. Kotlin offers two main ways to read from the standard input: the Scanner class, similar to Java, and the readln() function.