Answers for "how to get char input in kotlin"

3

kotlin read input as int

readLine()!!.toInt()
Posted by: Guest on May-23-2020
0

how to get char input in kotlin

import java.util.Scanner

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val chr = scanner.next().single()
}
Posted by: Guest on July-21-2020

Browse Popular Code Answers by Language