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

Have students who are transitioning from Python to Java explore the “From Python to Java” website to show them the differences between the two languages.
Have students implement an algorithm in Java to solve mazes so they can practice manipulating 2D arrays, stacks, and queues.
Misconception: Students think that a “repeat 1” block in Scratch will execute the relevant script twice, where the script executes once and then repeats once.
  • 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