Second Soliloquy

A journey into the mindscape...


One Tiny Alteration, One Big Problem

I was busily troubleshooting a Java application during today's AdProg class. This application in particular is supposed to search a list of records (based on a previous lab activity) using binary search. Problem one: the program looped without end. After several intervals of insane laughter caused by frustration, I found the problem. Instead of using && (AND) in the while conditional instead of (OR). Funny, how a mere 2 characters can create one huge problem.


Comments:

Post a Comment