Skip to main content
CS Teaching Tips

Main navigation

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

Have students label a string’s index values to help them understand how to use Java’s substring method.

Share Have students label a string’s index values to help them understand how to use Java’s substring method. with FacebookShare Have students label a string’s index values to help them understand how to use Java’s substring method. with Twitter
  • It is easier for students to choose the correct starting and ending arguments for substring when they have visual reference for characters and indices of the string.
  • The following is an example table containing string character values and index values.
String Values h e l l o
Index Values 0 1 2 3 4

More about this tip

Tags

  • AP A
  • Java
External Source

Leigh Ann Sudol-DeLyser’s notes from 2009 AP CS A exam.

Other Tips By
Other Tips By Leigh Ann Sudol-DeLyser

Similar tips

Give students guided notes (i.e., partially-completed notes that students complete) to help them stay engaged and learn from lectures or readings. It may be especially helpful to include vocabulary lists.
Use Class Responsibility Collaboration (CRC) cards to consistently introduce ideas like objects throughout an AP CS course.
Have students use a spiral notebook to keep track of important information to enhance their understanding of topics by writing down the material.

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

Privacy Policy