String select = "SELECT `idFilm`,`date` FROM `vente` WHERE `idClient` = ? AND `type` = ?";
try {
PreparedStatement preStat = (PreparedStatement) connex.prepareStatement(select);
preStat.setInt(1, c.getId());
preStat.setString(2, "l");
ResultSet rs = preStat.executeQuery();
while(rs.next()){
String loc[] = {rs.getString(1) , String.valueOf(rs.getLong(2))};
l.add(loc);
}