I want to display a word that was typed by the keyboard before. Therefore I declared a String:
I worked with Eclipse before and tried to give the String a value just like I used to do in Eclipse:
It didn't work out, it said "cannot find variable in". I remeber that I used a class called "in" to do this in Eclipse.
Is there also such a class for Greenfoot? If not, how can I get this to work?
private String newPlayer;
newPlayer = in.readString();