This site requires JavaScript, please enable it in your browser!
Greenfoot back
MrBradley
MrBradley wrote ...

2017/3/24

Simple user input

MrBradley MrBradley

2017/3/24

#
I have noticed several posts asking for some simple way of getting user input. I have seen lots of good examples too. If you are looking for something very basic Greenfoot offers the following: Greenfoot.ask(String). This will display a prompt at the bottom of the world with the specified prompt and will return a String. (see also: https://www.greenfoot.org/files/javadoc/greenfoot/Greenfoot.html)
You need to login to post a reply.