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.

Share When tracing through code in Java, use different colors for code that is executed in a main method versus in a class method. with FacebookShare When tracing through code in Java, use different colors for code that is executed in a main method versus in a class method. with Twitter
  • 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

Use descriptive variable names to model good naming practice so that students learn the value of descriptive names.
When explaining code to the class, project your code and use a tablet to draw on top of it. Ask students for debugging suggestions to make them more comfortable finding bugs and to show them that all programmers, even you, make mistakes.
Have students write methods that perform tasks of a standard music player in Java to give them practice manipulating data structures in a familiar context.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College