Can I do a program in which, if I touch an object, a question arises and I write the answer and if it is right to go on?
String response = Greenfoot.ask("What the question is?");
if (response != null && "answer".equals(response))
{
// correct
}
else
{
// wrong or not answered
}