Tag: For Loop
Because For loops are vastly superior to If statements
July 25th, 2008 by Scott SelikoffBecause 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 [...]
Categories: JDBC, WTFs.
Tags: For Loop, Java/J2EE, JDBC, WTFs
Comments: none
