No Picture

Using Loops

January 20, 2014 bwilson 0

Using loops can be one of the most useful operations in any language. Depending on the type of loop that you will be using ¬†you can loop through a set of numbers, continue the loop while a value is true or false, or do something before the loop starts. We […]

No Picture

Double Equals for Comparisons

December 30, 2013 bwilson 0

This is a holdover from C. It made its way into C++, and then Java used a lot of C++ syntax. The bug goes like this: Somewhere, you accidentally type a single equals sign instead of a double one when examining a boolean value: Instead of performing a comparison, as […]