Java programming with Greenfoot: keeping your code clean

5
0
4
0
3
0
2
0
1
0
0
Rate this resource

In this video tutorial students are guided through using space and indentation to make their Java programming easier to read.  How to add comments is also covered.  This is useful as the program gets longer it gets harder to find specific parts within it – using comments allows parts to be found quicker.  How to call specific methods and apply them to different objects is also explained.  This is useful if the game requires another character that will, for example, move the same way as the turtle; the student does not have to recreate the method for movement but the new object can call this instruction and use it.

More resources can be found here

Show health and safety information

Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.

Published by

Actions

Share this resource