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

2021/11/8

How to display strings

johnsec johnsec

2021/11/8

#
I made a variable where it would ask you for a number. I am now trying to display said number and I can't figure out how
Super_Hippo Super_Hippo

2021/11/8

#
The easiest way is to use the showText method in your world. For example like this:
String x = Greenfoot.ask(...);
showText(x, 20, 10);
You need to login to post a reply.