+ 2

Kotlin/how to display message for user input?

How to provide a message/alert to the user when the input window appears as to what to enter as user input? for example I want to tell the user to enter a character's name from a book..

13th Jul 2018, 12:19 PM
Sangar Sdiq
Sangar Sdiq - avatar
5 Respostas
+ 5
Tanay yeah, right. Instead I wrote instruction comments inside the code
14th Jul 2018, 12:13 PM
Sangar Sdiq
Sangar Sdiq - avatar
+ 4
Your code does not run here on the sololearn app it runs on the server so it asks for input the on the server when input is needed it inserts the data that you have submitted from the app as input so it's quite impossible to see the output and input the things on the same time. here is proof that your code doesn't run on your phone. https://code.sololearn.com/cBgdX9QUUyKl/?ref=app
14th Jul 2018, 12:11 PM
Tanay
Tanay - avatar
+ 4
Tanay mine was three hours behind
14th Jul 2018, 12:15 PM
Sangar Sdiq
Sangar Sdiq - avatar
+ 3
println ("Enter Character's name from book"); //and then readLine( );
14th Jul 2018, 2:59 AM
Tanay
Tanay - avatar
+ 3
Tanay yeah you're right. I do it on IntelliJ but here on sololearn code playground asks for the input before printing the message. I was hoping for the message to appear along the window that asks for the input
14th Jul 2018, 11:54 AM
Sangar Sdiq
Sangar Sdiq - avatar