Teach simple Java with graphics first using the Draw/Roll Die activity, having students call objects and methods before defining their own, for an engaging way to reinforce material.

  • The visualization keeps labs fun and helps content gel.
    • Students can see their project working and get to watch their class be made.
  • Students will focus on Die class.
    • The Die class has a roll method, which will roll the die, and a draw method, which will illustrate the dots on the die.
  • The first step for this assignment is to draw a number 1-6 on the die, not spots.
  • Next have students draw dots on the dice.
  • As students continue to add methods, they will see the behavior.
    • Their understanding of building a class with methods is entirely scaffolded this way.

More about this tip

External Source

Interview with Steve Vegdahl