Because For loops are vastly superior to If statements

Site menu:

Topics

Recent Posts

Blog

 

July 2008
M T W T F S S
    Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  

Past Posts

Links:

Archive for July 25th, 2008

Because For loops are vastly superior to If statements

July 25th, 2008 by Scott Selikoff

Because For loops are vastly superior to If statements I give my own WTF for the day: private boolean someMethod() {    int count = 0;    ResultSet rs = statement.executeQuery("select count(*) FROM …");    for ( ; rs.next(); ) {       count = rs.getInt(1);       break;    }    if [...]