Syntax Shading. For readability, we syntax shade the code, similar to Eclipse’s and Android Studio’s use of syntax coloring. Our syntax-shading conventions are as follows:
comments appear in grayconstants and literal values appear in bold darker gray keywords appear in bold blackall other code appears in non-bold black
Code Highlighting. We emphasize the key code segments in each program by enclosing them in light gray rectangles.
Using Fonts for Emphasis. We use various font conventions:
• The defining occurrences of key terms appear in bold for easy reference.
• On-screen IDE components appear in bold Helvetica (e.g., the File menu).
• Program source code appears in
int x = 5; ...