how to get a char from an input kotlin code example
Example: 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()
}
import java.util.Scanner
fun main(args: Array<String>) {
val scanner = Scanner(System.`in`)
val chr = scanner.next().single()
}