首页 > 解决方案 > Why IntelliJIDEA Kotlin doesn't take input from readLine() when running the main file in Console Application?

问题描述

enter image description here

Taking input as commandline works fine though!

It seems i need to enter twice to get an input. Cant seem to understand why?

标签: kotlin

解决方案


我想出的最佳答案是 IntelliJ 内部控制台中的错误:be 发生了同样的事情,当我在旧版本中运行它时它工作正常


推荐阅读