Skip to main content
CS Teaching Tips

Main navigation

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

When tracing through code in Java, use different colors for code that is executed in a main method versus in a class method.

  • This helps students solidify their understanding of where code actually gets executed in Java.

More about this tip

Tags

  • Java
  • CS 1
  • Intro Programming
External Source

Interview with Bob Luciano

Other Tips By
Other Tips By Bob Luciano

Similar tips

Having students trace a simple program for drawing a set of squares in Processing to introduce loops and strengthen student understanding for-loops with a body of code through practice.
Explicitly demonstrate how and where to set up a file for writing code because students often struggle with where to place code.
Insist students use Javadocs as a resource in intro Java classes to reinforce the value of self-directed learning and ensure they know how to reference important documentation.

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

Privacy Policy