cs_diabohit
Messages postés75Date d'inscriptionmardi 11 novembre 2008StatutMembreDernière intervention 2 février 2012
-
19 avril 2009 à 06:33
cs_diabohit
Messages postés75Date d'inscriptionmardi 11 novembre 2008StatutMembreDernière intervention 2 février 2012
-
19 avril 2009 à 07:35
slt tout le monde
je veux faire un tableau de String dynamique
j ai asseayé ce code:
static public String[] tab3;
public void consulter_date() throws SQLException
{
query = "SELECT date FROM `rno`.`region` GROUP BY date";
rs = stmt.executeQuery(query);
while (rs.next())
{ String[] temp=tab3;
tab3 = new String[temp.length+1];
for(int i=0; i<temp.length; i++)
tab3[i]=temp[i];
tab3[temp.length]=(rs.getString(1));
}
}
SVP aidez moi pour resoudre ce probleme le plus vite possible.
Car ce code ne marche pas
ou est le problème?