This goes to prove that java is a pretty bad language to teach pogramming.
in logo this is how you draw a square forward 100 Right 90 Forward 100 Right 90 Forward 100 Right 90 Forward 100 Right 90
Then in the second lesson you introduce loops repeat 4 Forward 100 Right 90 End
then you ask kids to draw hexagons octagons etc. and they will never forget what a for loop does.
Edit changed repeat 8 to repeat 4. Thank you.