Skip to content

Commit ca7ef22

Browse files
committed
added a line
1 parent dd0522f commit ca7ef22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/ch9_commonmistakes.ptx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
}//End of class
4747
</code>
4848
</program>
49+
</listing>
4950
<p>
5051
In <xref ref="println-debugging" text="type-global"/>, <c>System.out.println()</c> is used inside both <c>main</c> and <c>multiplyByTwo()</c> to trace what values are being passed and returned. This kind of print-based debugging can quickly reveal logic errors, unexpected behavior, or whether a method is even being called. However, overuse of this technique will often take more time than using the debugging tools that are built into your IDE.
5152
</p>

0 commit comments

Comments
 (0)