5. Debugging Techniques
• Comment out lines // or blocks /* … */!
• Use print() and println() to check values!
• Use setters and getters (encapsulation):!
! setXpos(25);
! getXpos();
6. For next time…
• Office Hours: Friday class cancelled but you can
schedule time for this Friday, 10a–12:30p!
• Homework 3: due Friday, via email, by 5pm!
• Reading: Shiffman, p. 201–214 (Mathematics I)!
• Quiz 4: Monday, March 10 (Algorithms,
Debugging, & Libraries)