readLine()后无法使用.toChar()

我无法在.toChar()之后使用Kotlin中的.toChar() readLine()!!

像这种情况一样

 //An Array Of Characters var CharAr= Array(5){' '} for(i in 0..4){ println("Please Enter The character Number ${i+1}") CharAr[i]= readLine()!!.toChar() } 

甚至在这种情况下

 //Normal readLine() var CharacterNum1:Char println("Please Enter a Character") CharacterNum1= readLine()!!.toChar() 

感谢您的帮助 :)

Kotlin language will be the best programming language for Android.