+ 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..
5 Answers
+ 5
Tanay yeah, right. Instead I wrote instruction comments inside the code
+ 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
+ 4
Tanay mine was three hours behind
+ 3
println ("Enter Character's name from book");
//and then readLine( );
+ 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