Skip to main content
CS Teaching Tips

Main navigation

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

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.

  • This assignment can be implemented earlier in a student’s CS career using arrays, or later on using stacks and queues.
  • For a detailed explanation of this assignment, visit Stanford’s nifty assignment page.

More about this tip

Tags

  • Data Structures
  • Meaningful and Relevant Content
  • CS 1
  • Intro Programming
  • CS 2
  • Java
External Source
Stanford Nifty Assignment by Allison Obourn and Marty Stepp.
Other Tips By
Other Tips By Marty Stepp
Marty Stepp

Similar tips

Ask your students what they need to know about dice to have enough information about the three aspects of a class to create dice objects building off a common game tool to help students get comfortable with making objects.
Show intro students in class how to force stop a program running in terminal because they need to be shown how to get out of a running infinite loop, it’s a very useful skill.
Misconception: Students incorrectly assume that Java’s substring method is destructive and wrongly anticipate the original string will change.

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

Privacy Policy