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

2017/9/17

Tutorial

Jck Jck

2017/9/17

#
Do know anyonw what mean that "touch us", and how it work? "Now we have the return value of the method in the variable worm. If there was no Worm touching us, this variable will contain the special value null. We can only remove the worm when there is a worm, so we need a check that the worm is not the special null value before removing:"
Jck Jck

2017/9/17

#
Where do I may find the code?
danpost danpost

2017/9/17

#
Jck wrote...
Where do I may find the code?
What does the method that is being referred to look like? (show code) It looks like you are quoting some text or someone. From where is it being quoted?
Jck Jck

2017/9/17

#
https://www.greenfoot.org/doc/tut-3
danpost danpost

2017/9/17

#
Jck wrote...
https://www.greenfoot.org/doc/tut-3
Ahhh, okay. Did you read on? -- the next code set given shows how it is applied. Continuing with:
if (worm != null)
Jck Jck

2017/9/17

#
OK! Thanks.
You need to login to post a reply.