if(rs.next()){....out.println(rs.getString("....") );

il metodo next() è un controllo sul result set

ciao