Kotlin/how to display message for user input? | SoloLearn: Learn to code for FREE!


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..

7/13/2018 12:19:19 PM

Sangar Sdiq

5 Answers

New Answer


Tanay yeah, right. Instead I wrote instruction comments inside the code


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


Tanay mine was three hours behind


println ("Enter Character's name from book"); //and then readLine( );


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