Finding Bugs with Tracing, Part 1 – Intro to Java Programming


Let’s practice hand tracing with objects. I implemented a get number of friends method, so I can compare how many friends I have with how many friends Chin Han has. Here’s the code. Did I get it right? Let’s find out by hand tracing these four lines of code. Hand trace it for the Sara variable.

One thought on “Finding Bugs with Tracing, Part 1 – Intro to Java Programming

Leave a Reply

Your email address will not be published. Required fields are marked *