Hi, I'm new at Greenfoot and Java in general. This'll probably be a quickly answered question if you have the time to help me. So I recently discovered this: public static java.lang.String ask(java.lang.String prompt)
Now, if I did something like:
How can I make a variable (int code), become what the user has inputted in the ask string?
I honestly have no idea how to go about this. I've tried using
but I don't know how to use that.
Help would me much appreciated. Try to use easy words and not get to complicated.
Thanks!
Greenfoot.ask("Input a number. The code cracker will crack it.");return;

