RunTime Error when trying to take String input using readLine in Kotlin
I am a beginner in kotlin and this is the code I tried to execute, but runtime error is being displayed. Please help me resolve this.
fun main(args: Array)
var inp = Scanner(System.
var t:Int = inp.nextInt();
var n:Int = inp.nextInt();
var s:String = readLine()!!
for (i in s)
Exception in thread "main" kotlin.KotlinNullPointerException...