posted 12 years ago
I print out values I'm interested in to see if they're behaving the way I expect them to. This approach is especially useful in loops to verify that the loop index(es) start with the correct value, that the loop terminates when it's supposed to, and that the values within the loop begin with the desired initial values and vary appropriately as the loop executes. I use Eclipse's debugger occasionally, but I find just printing the desired values easier, maybe because I don't know how to use the debugger that well.
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795