Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Always use the keyword ‘this’ in Java, and trace through many examples, to help students understand it.

  • Structure assignments such that the following call must be used: obj.method(this)

More about this tip

Tags

  • Programming Concepts
  • Development Methods
  • Java
External Source

Interview with Steve Vegdahl

Other Tips By
Other Tips By Steve Vegdahl

Similar tips

When tracing through code in Java, use different colors for code that is executed in a main method versus in a class method.
Ask students to consider which objects in the room are computers to further their understanding of what computing is. Use the phrasing "What different Computers do you see".
Have students write a game of Hangman in Python in which the computer cheats by changing its secret word to give students practice using dictionaries.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy