title: IntelliJ IDEA: Why is readLine() expecting two user inputs instead of one using Kotlin?
body: <p>I wrote a simple program that takes the user's input from the console and then prints it. But when the user enters the input, it requests a second user input and only reads the second input.</p>
  <p>Code:</p>
  <pre><code>fun main(args: Array&lt;String&gt;) {
      print(&quot;Enter text: &quot;)
      val stringInput = readLine()!!
      println(&quot;Readed text: $stringInput&quot;)
  }
  </code></pre>
  <p>Console:</p>
  <pre><code>&gt; Task :MainKt.main()
  Enter text: FirstInput
  SecondInput
  Disconnected from the target VM, address: 'localhost:37282', transport: 'socket'
  Connected to the target VM, address: '127.0.0.1:37264', transport: 'socket'
  Readed text: SecondInput
  </code></pre>
  <p>I'm using the latest version of IntelliJ IDEA. I don't know why this is happening. I'm using Windows.</p>