public static int nbtour() throws Exception { int nombre = 0; ResultSet resultat = database.selecttournois( "select numtour from tournois where nom = '" + Tournois.getNom() + "'"); while (resultat.next()) { nombre = resultat.getInt("numtour"); } return nombre; }