Link Search Menu Expand Document

Introduction

What you will make

In this resource you will take your first steps with the programming language Java to draw shapes, patterns, and spirals. You will use an environment named Greenfoot. Along the way you will learn how to think in sequences, and use loops to repeat a sequence. This is a great stepping stone from a visual programming language like Scratch to the text-based environment of Java. Also, if you have used Python’s Turtle module before, this is an adaptation of that workflow.

What you will learn

By making patterns with Java code you will learn:

  • To take your first steps with the Java programming language
  • How to draw lines with Java Greenfoot
  • How to make turns
  • How to change the line color
  • To use loops to repeat some instructions and create shapes
  • To use more loops to create spiral patterns